Options for FirebaseVisionFaceDetector.
| class | FirebaseVisionFaceDetectorOptions.Builder | Builder class of
FirebaseVisionFaceDetectorOptions. |
|
| @interface | FirebaseVisionFaceDetectorOptions.ClassificationMode | Indicates whether to run additional classifiers for characterizing attributes such as "smiling" and "eyes open". | |
| @interface | FirebaseVisionFaceDetectorOptions.ContourMode | Sets whether to detect contours or not. | |
| @interface | FirebaseVisionFaceDetectorOptions.LandmarkMode | Sets whether to detect no landmarks or all landmarks. | |
| @interface | FirebaseVisionFaceDetectorOptions.PerformanceMode | Extended option for controlling additional accuracy / speed trade-offs in performing face detection. | |
| int | ACCURATE | Indicates a preference for accuracy in extended settings that may make an accuracy vs. |
| int | ALL_CLASSIFICATIONS | Performs "eyes open" and "smiling" classification. |
| int | ALL_CONTOURS | Detects
FirebaseVisionFaceContour for a given face. |
| int | ALL_LANDMARKS | Detects
FirebaseVisionFaceLandmark for a given face. |
| int | FAST | Indicates a preference for speed in extended settings that may make an accuracy vs. |
| int | NO_CLASSIFICATIONS | Does not perform classification. |
| int | NO_CONTOURS | Does not perform contour detection. |
| int | NO_LANDMARKS | Does not perform landmark detection. |
| boolean | |
| int |
getClassificationMode()
Gets the classifiers mode for characterizing attributes, such as "smiling" and
"eyes open".
|
| int |
getContourMode()
Gets the contour mode for face detection.
|
| int |
getLandmarkMode()
Gets the landmark mode for face detection.
|
| float |
getMinFaceSize()
Sets the smallest desired face size, expressed as a proportion of the width of
the head to the image width.
|
| int |
getPerformanceMode()
Extended option for controlling additional accuracy / speed trade-offs in
performing face detection.
|
| int |
hashCode()
|
| boolean |
isTrackingEnabled()
Returns if face tracking is enabled, which will maintain a consistent ID for
each face when processing consecutive frames.
|
| String |
toString()
|
Indicates a preference for accuracy in extended settings that may make an accuracy vs. speed trade-off. This will tend to detect more faces and may be more precise in determining values such as position, at the cost of speed.
Performs "eyes open" and "smiling" classification.
Detects
FirebaseVisionFaceContour for a given face. Note that it would return
contours for up to 5 faces
Detects
FirebaseVisionFaceLandmark for a given face.
Indicates a preference for speed in extended settings that may make an accuracy vs. speed trade-off. This will tend to detect fewer faces and may be less precise in determining values such as position, but will run faster.
Does not perform classification.
Does not perform contour detection.
Does not perform landmark detection.
Gets the classifiers mode for characterizing attributes, such as "smiling" and "eyes
open". See
setClassificationMode(int).
Gets the contour mode for face detection. See
setContourMode(int).
Gets the landmark mode for face detection. See
setLandmarkMode(int).
Sets the smallest desired face size, expressed as a proportion of the width of the
head to the image width. See
setMinFaceSize(float).
Extended option for controlling additional accuracy / speed trade-offs in performing
face detection. In general, choosing the more accurate mode will generally result in
longer runtime, whereas choosing the faster mode will generally result in detecting
fewer faces. See
setPerformanceMode(int).
Returns if face tracking is enabled, which will maintain a consistent ID for each
face when processing consecutive frames. See
enableTracking().