MediaPipeTasksVision Framework Reference

Landmark

class Landmark : 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

    Swift

    var x: Float { get }
  • y

    The y coordinates of the landmark.

    Declaration

    Swift

    var y: Float { get }
  • z

    The z coordinates of the landmark.

    Declaration

    Swift

    var z: Float { get }
  • 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

    Swift

    var visibility: NSNumber? { get }
  • 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

    Swift

    var presence: NSNumber? { get }
  • Initializes a new Landmark object with the given x, y and z coordinates.

    Declaration

    Swift

    init(x: Float, y: Float, z: Float, visibility: NSNumber?, presence: NSNumber?)

    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

  • Undocumented