MLKitFaceDetection Framework Reference

  • FaceLandmark represents a detected landmark on a human face within an image.

  • It provides the landmark's type (e.g., mouth, nose) and its 2D position in the image.

  • You cannot directly create a FaceLandmark instance; it's obtained from face detection results.

FaceLandmark

class FaceLandmark : NSObject

A landmark on a human face detected in an image.

  • The type of the facial landmark.

    Declaration

    Swift

    var type: FaceLandmarkType { get }
  • 2D position of the facial landmark.

    Declaration

    Swift

    var position: MLKVisionPoint { get }
  • Unavailable.