MediaPipeTasksVision Framework Reference

MPPPoseLandmarkerResult


@interface MPPPoseLandmarkerResult : MPPTaskResult

Represents the pose landmarks deection results generated by PoseLandmarker.

  • Pose landmarks of detected poses.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<NSArray<MPPNormalizedLandmark *> *> *_Nonnull landmarks;
  • Pose landmarks in world coordinates of detected poses.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<NSArray<MPPLandmark *> *> *_Nonnull worldLandmarks;
  • Pose segmentation masks.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<MPPMask *> *_Nonnull segmentationMasks;
  • Initializes a new PoseLandmarkerResult with the given array of landmarks, world landmarks, segmentation masks of the detected poses and timestamp (in milliseconds).

    Declaration

    Objective-C

    - (nonnull instancetype)
              initWithLandmarks:
                  (nonnull NSArray<NSArray<MPPNormalizedLandmark *> *> *)landmarks
                 worldLandmarks:
                     (nonnull NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
              segmentationMasks:(nullable NSArray<MPPMask *> *)segmentationMasks
        timestampInMilliseconds:(NSInteger)timestampInMilliseconds;

    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).

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithTimestampInMilliseconds:(NSInteger)timestampInMilliseconds NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_UNAVAILABLE;