PoseLandmarker
final class PoseLandmarkerDetects 33-point human pose landmarks, world landmarks, and optional segmentation masks across still images, video frames, and live camera streams.
-
Standard 33-landmark MediaPipe BlazePose skeleton edge connections.
Declaration
Swift
static let poseLandmarks: [Connection] -
Creates a
PoseLandmarkerin.imagemode using the model bundle atmodelPath.Declaration
Swift
convenience init(modelPath: String) throws -
Creates a
PoseLandmarkerconfigured withoptions.Declaration
Swift
init(options: PoseLandmarkerOptions) throws -
Detects pose landmarks in a still
image(.imagerunning mode only).Declaration
Swift
final func detect(image: MPImage, imageProcessingOptions: ImageProcessingOptions? = nil) throws -> PoseLandmarkerResult -
Detects pose landmarks in
videoFrameat monotonically increasingtimestampInMilliseconds.Declaration
Swift
final func detect(videoFrame: MPImage, timestampInMilliseconds: Int, imageProcessingOptions: ImageProcessingOptions? = nil) throws -> PoseLandmarkerResult -
Enqueues
imageat monotonically increasingtimestampInMillisecondsin.liveStreammode.Declaration
Swift
final func detectAsync(image: MPImage, timestampInMilliseconds: Int, imageProcessingOptions: ImageProcessingOptions? = nil) throws