MLKitPoseDetectionCommon Framework Reference

MLKPoseLandmark


@interface MLKPoseLandmark : NSObject

A landmark in a pose detection result.

  • The landmark type (i.e. location on the body).

    Declaration

    Objective-C

    @property (nonatomic, readonly) MLKPoseLandmarkType _Nonnull type;
  • The position of the 3D point in the input image space.

    The z-value does not have a fixed origin in the image space. Instead, the z-origin is located on the detected person’s hip. A negative z-value indicates that the landmark is in front of the z-origin, between the detected person and the camera. Whereas a positive z-value indicates that the landmark is behind the z-origin.

    Z-values don’t have a fixed range. However, since the z-coordinate system is in the input image space, the z-values can be used to infer relative distance between landmarks, measured in image pixels.

    Note: Z-values are less accurate than x and y-values. Additionally, z-values for facial landmarks are not calculated, so please disregard them.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MLKVision3DPoint *_Nonnull position;
  • The likelihood, in range [0, 1], that the landmark is actually in the image frame.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float inFrameLikelihood;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;