FaceDetectorOptions

public class FaceDetectorOptions extends Object

Options for FaceDetector.

Nested Class Summary

class FaceDetectorOptions.Builder Builder class of FaceDetectorOptions
@interface FaceDetectorOptions.ClassificationMode Defines options for characterizing attributes such as "smiling" * and "eyes open". 
@interface FaceDetectorOptions.ContourMode Defines options to enable face contours or not. 
@interface FaceDetectorOptions.LandmarkMode Defines options to enable face landmarks or not. 
@interface FaceDetectorOptions.PerformanceMode Defines options to control accuracy / speed trade-offs in performing face detection. 

Constant Summary

int CLASSIFICATION_MODE_ALL Performs "eyes open" and "smiling" classification.
int CLASSIFICATION_MODE_NONE Does not perform classification.
int CONTOUR_MODE_ALL Detects FaceContour for a given face.
int CONTOUR_MODE_NONE Does not perform contour detection.
int LANDMARK_MODE_ALL Detects FaceLandmark for a given face.
int LANDMARK_MODE_NONE Does not perform landmark detection.
int PERFORMANCE_MODE_ACCURATE Indicates a preference for accuracy in the options that may make an accuracy vs.
int PERFORMANCE_MODE_FAST Indicates a preference for speed in the options that may make an accuracy vs.

Public Method Summary

boolean
equals(Object o)
Indicates whether some other object is "equal to" this one.
int
hashCode()
Returns a hash code value for the object.
String

Inherited Method Summary

Constants

public static final int CLASSIFICATION_MODE_ALL

Performs "eyes open" and "smiling" classification.

Constant Value: 2

public static final int CLASSIFICATION_MODE_NONE

Does not perform classification.

Constant Value: 1

public static final int CONTOUR_MODE_ALL

Detects FaceContour for a given face. Note that it would return contours for up to 5 faces

Constant Value: 2

public static final int CONTOUR_MODE_NONE

Does not perform contour detection.

Constant Value: 1

public static final int LANDMARK_MODE_ALL

Detects FaceLandmark for a given face.

Constant Value: 2

public static final int LANDMARK_MODE_NONE

Does not perform landmark detection.

Constant Value: 1

public static final int PERFORMANCE_MODE_ACCURATE

Indicates a preference for accuracy in the options 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.

Constant Value: 2

public static final int PERFORMANCE_MODE_FAST

Indicates a preference for speed in the options 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.

Constant Value: 1

Public Methods

public boolean equals (Object o)

Indicates whether some other object is "equal to" this one.

public int hashCode ()

Returns a hash code value for the object.

public String toString ()