com.google.mlkit.vision.face
Stay organized with collections
Save and categorize content based on your preferences.
Annotations
Interfaces
Classes
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-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThis API enables detection and analysis of faces within images, including identification of facial contours and landmarks.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can customize the face detection process using options for classification (e.g., smiling), contours, landmarks, and performance.\u003c/p\u003e\n"],["\u003cp\u003eThe core components include \u003ccode\u003eFaceDetector\u003c/code\u003e for detecting faces, \u003ccode\u003eFace\u003c/code\u003e for representing detected faces, and supporting classes for contours and landmarks.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFaceDetectorOptions\u003c/code\u003e allows customization of the detection process, influencing speed and accuracy trade-offs, while \u003ccode\u003eFaceContour\u003c/code\u003e and \u003ccode\u003eFaceLandmark\u003c/code\u003e provide detailed information about facial features.\u003c/p\u003e\n"]]],[],null,["# com.google.mlkit.vision.face\n\n### Annotations\n\n|----------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| [FaceContour.ContourType](/android/reference/com/google/mlkit/vision/face/FaceContour.ContourType) | Contour types for face. |\n| [FaceDetectorOptions.ClassificationMode](/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.ClassificationMode) | Defines options for characterizing attributes such as \"smiling\" \\* and \"eyes open\". |\n| [FaceDetectorOptions.ContourMode](/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.ContourMode) | Defines options to enable face contours or not. |\n| [FaceDetectorOptions.LandmarkMode](/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.LandmarkMode) | Defines options to enable face landmarks or not. |\n| [FaceDetectorOptions.PerformanceMode](/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.PerformanceMode) | Defines options to control accuracy / speed trade-offs in performing face detection. |\n| [FaceLandmark.LandmarkType](/android/reference/com/google/mlkit/vision/face/FaceLandmark.LandmarkType) | Landmark types for face. |\n\n### Interfaces\n\n|------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FaceDetector](/android/reference/com/google/mlkit/vision/face/FaceDetector) | A [FaceDetection](/android/reference/com/google/mlkit/vision/face/FaceDetection) client for finding [Face](/android/reference/com/google/mlkit/vision/face/Face)s in a supplied image. |\n\n### Classes\n\n|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Face](/android/reference/com/google/mlkit/vision/face/Face) | Represents a face detected by [FaceDetector](/android/reference/com/google/mlkit/vision/face/FaceDetector). |\n| [FaceContour](/android/reference/com/google/mlkit/vision/face/FaceContour) | Represent a face contour. |\n| [FaceDetection](/android/reference/com/google/mlkit/vision/face/FaceDetection) | Entry point to get a [FaceDetector](/android/reference/com/google/mlkit/vision/face/FaceDetector) for finding [Face](/android/reference/com/google/mlkit/vision/face/Face)s in a supplied image. |\n| [FaceDetectorOptions](/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions) | Options for [FaceDetector](/android/reference/com/google/mlkit/vision/face/FaceDetector). |\n| [FaceDetectorOptions.Builder](/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.Builder) | Builder class of [FaceDetectorOptions](/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions). |\n| [FaceLandmark](/android/reference/com/google/mlkit/vision/face/FaceLandmark) | Represent a face landmark. |"]]