MLKitFaceDetection Framework Reference

  • MLKFaceLandmark represents a specific point on a detected human face, such as an eye or nose.

  • Each landmark has a type specifying what facial feature it is and a position indicating its 2D location.

  • You cannot directly create an MLKFaceLandmark instance using the init method; it's likely obtained from face detection results.

MLKFaceLandmark


@interface MLKFaceLandmark : NSObject

A landmark on a human face detected in an image.

  • The type of the facial landmark.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MLKFaceLandmarkType _Nonnull type;
  • 2D position of the facial landmark.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MLKVisionPoint *_Nonnull position;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;