MLKitFaceDetection Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Classes
The following classes are available globally.
-
A human face detected in an image.
Declaration
Objective-C
@interface
MLKFace
:
NSObject
-
A contour on a human face detected in an image.
Declaration
Objective-C
@interface
MLKFaceContour
:
NSObject
-
A face detector that detects faces in an image.
Declaration
Objective-C
@interface
MLKFaceDetector
:
NSObject
-
Options for specifying a face detector.
Declaration
Objective-C
@interface
MLKFaceDetectorOptions
:
NSObject
-
A landmark on a human face detected in an image.
Declaration
Objective-C
@interface
MLKFaceLandmark
:
NSObject
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eML Kit Face Detection provides classes for detecting and analyzing human faces in images.\u003c/p\u003e\n"],["\u003cp\u003eKey classes include \u003ccode\u003eMLKFace\u003c/code\u003e, \u003ccode\u003eMLKFaceContour\u003c/code\u003e, \u003ccode\u003eMLKFaceDetector\u003c/code\u003e, \u003ccode\u003eMLKFaceDetectorOptions\u003c/code\u003e, and \u003ccode\u003eMLKFaceLandmark\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese classes enable developers to identify faces, facial contours, and landmarks within images, offering detailed facial feature information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMLKFaceDetector\u003c/code\u003e class is central to the process, handling face detection, while other classes provide data structures for representing detected features.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can configure detection options using \u003ccode\u003eMLKFaceDetectorOptions\u003c/code\u003e to customize the behavior of the face detection process.\u003c/p\u003e\n"]]],["The core content details five globally available classes for iOS face detection: `MLKFace`, representing a detected human face; `MLKFaceContour`, defining a face contour; `MLKFaceDetector`, which detects faces; `MLKFaceDetectorOptions`, used to configure the face detector; and `MLKFaceLandmark`, identifying specific landmarks on a face. Each class is an Objective-C interface, inheriting from `NSObject`. These classes collectively enable detailed face detection and feature identification within images.\n"],null,["# MLKitFaceDetection Framework Reference\n\nClasses\n=======\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [MLKFace](/ml-kit/reference/ios/mlkitfacedetection/api/reference/Classes/MLKFace)\n\n `\n ` \n A human face detected in an image. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKFace : NSObject\n\n- `\n ``\n ``\n `\n\n ### [MLKFaceContour](/ml-kit/reference/ios/mlkitfacedetection/api/reference/Classes/MLKFaceContour)\n\n `\n ` \n A contour on a human face detected in an image. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKFaceContour : NSObject\n\n- `\n ``\n ``\n `\n\n ### [MLKFaceDetector](/ml-kit/reference/ios/mlkitfacedetection/api/reference/Classes/MLKFaceDetector)\n\n `\n ` \n A face detector that detects faces in an image. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKFaceDetector : NSObject\n\n- `\n ``\n ``\n `\n\n ### [MLKFaceDetectorOptions](/ml-kit/reference/ios/mlkitfacedetection/api/reference/Classes/MLKFaceDetectorOptions)\n\n `\n ` \n Options for specifying a face detector. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKFaceDetectorOptions : NSObject\n\n- `\n ``\n ``\n `\n\n ### [MLKFaceLandmark](/ml-kit/reference/ios/mlkitfacedetection/api/reference/Classes/MLKFaceLandmark)\n\n `\n ` \n A landmark on a human face detected in an image. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKFaceLandmark : NSObject"]]