MediaPipeTasksVision Framework Reference

MPPLandmark


@interface MPPLandmark : NSObject

Landmark represents a point in 3D space with x, y, z coordinates. The landmark coordinates are in meters. z represents the landmark depth, and the smaller the value the closer the world landmark is to the camera.

  • x

    The x coordinates of the landmark.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float x;
  • y

    The y coordinates of the landmark.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float y;
  • z

    The z coordinates of the landmark.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float z;
  • Landmark visibility. Should be nil if not supported. Float score of whether landmark is visible or occluded by other objects. Landmark considered as invisible also if it is not present on the screen (out of scene bounds). Depending on the model, visibility value is either a sigmoid or an argument of sigmoid.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *visibility;
  • Landmark presence. Should stay unset if not supported. Float score of whether landmark is present on the scene (located within scene bounds). Depending on the model, presence value is either a result of sigmoid or an argument of sigmoid function to get landmark presence probability.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *presence;
  • Initializes a new Landmark object with the given x, y and z coordinates.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithX:(float)x
                                    y:(float)y
                                    z:(float)z
                           visibility:(nullable NSNumber *)visibility
                             presence:(nullable NSNumber *)presence;

    Parameters

    x

    The x coordinates of the landmark.

    y

    The y coordinates of the landmark.

    z

    The z coordinates of the landmark.

    Return Value

    An instance of Landmark initialized with the given x, y and z coordinates.

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_UNAVAILABLE;