MLKitFaceDetection Framework Reference

  • MLKFaceContour represents a contour detected on a human face within an image, like the jawline or eyebrow.

  • It includes the type of contour (e.g., upper lip) and an array of 2D points that define its shape.

  • You cannot directly create an MLKFaceContour object; it's obtained from face detection results.

MLKFaceContour


@interface MLKFaceContour : NSObject

A contour on a human face detected in an image.

  • The facial contour type.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MLKFaceContourType _Nonnull type;
  • An array of 2D points that make up the facial contour.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<MLKVisionPoint *> *_Nonnull points;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;