MediaPipeTasksVision Framework Reference

PoseLandmarkerResult

class PoseLandmarkerResult: TaskResult, NSCopying

Represents the pose landmarks deection results generated by PoseLandmarker.

  • Initializes a new PoseLandmarkerResult with the given array of landmarks, world landmarks, segmentation masks of the detected poses and timestamp (in milliseconds).

    Declaration

    Swift

    init(landmarks: [[NormalizedLandmark]], worldLandmarks: [[Landmark]], segmentationMasks: [Mask]?, timestampInMilliseconds: Int)

    Parameters

    landmarks

    An array of NormalizedLandmark objects.

    worldLandmarks

    An array of Landmark objects.

    segmentationMasks

    An array of Mask objects.

    timestampInMilliseconds

    The timestamp (in milliseconds) for this result.

    Return Value

    An instance of PoseLandmarkerResult initialized with the given array of landmarks, world landmarks, segmentation masks of the detected poses and timestamp (in milliseconds).

  • Pose landmarks of detected poses.

    Declaration

    Swift

    var landmarks: [[NormalizedLandmark]] { get }
  • Pose segmentation masks.

    Declaration

    Swift

    var segmentationMasks: [Mask] { get }
  • Pose landmarks in world coordinates of detected poses.

    Declaration

    Swift

    var worldLandmarks: [[Landmark]] { get }