MediaPipeTasksVision Framework Reference

PoseLandmarkerResult

struct PoseLandmarkerResult: Sendable, Equatable

Pose landmarks, world landmarks, and optional segmentation masks produced by PoseLandmarker.

  • Creates a PoseLandmarkerResult with landmarks, world landmarks, optional masks, and timestamp.

    Declaration

    Swift

    init(landmarks: [[NormalizedLandmark]], worldLandmarks: [[Landmark]], segmentationMasks: [MPMask]? = nil, timestampInMilliseconds: Int)
  • Normalized [0.0, 1.0] image-space landmarks for each detected pose.

    Declaration

    Swift

    let landmarks: [[NormalizedLandmark]]
  • Per-pose segmentation masks, or nil when segmentation mask output is disabled.

    Declaration

    Swift

    let segmentationMasks: [MPMask]?
  • Timestamp in milliseconds associated with this result (0 in .image mode).

    Declaration

    Swift

    let timestampInMilliseconds: Int
  • Metric 3D world-space landmarks (in meters) for each detected pose.

    Declaration

    Swift

    let worldLandmarks: [[Landmark]]