com.google.mlkit.vision.face

  • This API enables detection and analysis of faces within images, including identification of facial contours and landmarks.

  • Developers can customize the face detection process using options for classification (e.g., smiling), contours, landmarks, and performance.

  • The core components include FaceDetector for detecting faces, Face for representing detected faces, and supporting classes for contours and landmarks.

  • FaceDetectorOptions allows customization of the detection process, influencing speed and accuracy trade-offs, while FaceContour and FaceLandmark provide detailed information about facial features.

Annotations

FaceContour.ContourType Contour types for face. 
FaceDetectorOptions.ClassificationMode Defines options for characterizing attributes such as "smiling" * and "eyes open". 
FaceDetectorOptions.ContourMode Defines options to enable face contours or not. 
FaceDetectorOptions.LandmarkMode Defines options to enable face landmarks or not. 
FaceDetectorOptions.PerformanceMode Defines options to control accuracy / speed trade-offs in performing face detection. 
FaceLandmark.LandmarkType Landmark types for face. 

Interfaces

FaceDetector A FaceDetection client for finding Faces in a supplied image. 

Classes

Face Represents a face detected by FaceDetector
FaceContour Represent a face contour. 
FaceDetection Entry point to get a FaceDetector for finding Faces in a supplied image. 
FaceDetectorOptions Options for FaceDetector
FaceDetectorOptions.Builder Builder class of FaceDetectorOptions
FaceLandmark Represent a face landmark.