com.google.mlkit.vision.face

  • Annotations provide options for face contour types, classification modes (like smiling and eyes open), contour and landmark enablement, and performance trade-offs.

  • The FaceDetector interface is used to find faces in an image.

  • Classes include Face (representing a detected face), FaceContour (representing a face contour), FaceDetection (the entry point for getting a FaceDetector), FaceDetectorOptions (options for the FaceDetector), FaceDetectorOptions.Builder (for building FaceDetectorOptions), and FaceLandmark (representing a face landmark).

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 Face s 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 Face s in a supplied image.
FaceLandmark Represent a face landmark.

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.