FirebaseVisionFaceDetectorOptions

public class FirebaseVisionFaceDetectorOptions extends Object

Nested Class Summary

class FirebaseVisionFaceDetectorOptions.Builder Builder class of FirebaseVisionFaceDetectorOptions
@interface FirebaseVisionFaceDetectorOptions.ClassificationType Indicates whether to run additional classifiers for characterizing attributes such as "smiling" and "eyes open". 
@interface FirebaseVisionFaceDetectorOptions.LandmarkType Sets whether to detect no landmarks or all landmarks. 
@interface FirebaseVisionFaceDetectorOptions.ModeType Extended option for controlling additional accuracy / speed trade-offs in performing face detection. 

Constant Summary

int ACCURATE_MODE 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_LANDMARKS Detects all landmarks.
int FAST_MODE Indicates a preference for speed in extended settings that may make an accuracy vs.
int NO_CLASSIFICATIONS Does not perform classification.
int NO_LANDMARKS Does not perform landmark detection.

Public Method Summary

boolean
int
getClassificationType()
Gets the type of classifiers for characterizing attributes, such as "smiling" and "eyes open".
int
getLandmarkType()
Gets the type of landmarks to detect in the face.
float
getMinFaceSize()
Sets the smallest desired face size, expressed as a proportion of the width of the head to the image width.
int
getModeType()
Extended option for controlling additional accuracy / speed trade-offs in performing face detection.
int
boolean
isTrackingEnabled()
Returns if face tracking is enabled, which will maintain a consistent ID for each face when processing consecutive frames.

Inherited Method Summary

Constants

public static final int ACCURATE_MODE

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.

Constant Value: 2

public static final int ALL_CLASSIFICATIONS

Performs "eyes open" and "smiling" classification.

Constant Value: 2

public static final int ALL_LANDMARKS

Detects all landmarks.

Constant Value: 2

public static final int FAST_MODE

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.

Constant Value: 1

public static final int NO_CLASSIFICATIONS

Does not perform classification.

Constant Value: 1

public static final int NO_LANDMARKS

Does not perform landmark detection.

Constant Value: 1

Public Methods

public boolean equals (Object o)

public int getClassificationType ()

Gets the type of classifiers for characterizing attributes, such as "smiling" and "eyes open". See setClassificationType(int).

public int getLandmarkType ()

Gets the type of landmarks to detect in the face. See setLandmarkType(int).

public float getMinFaceSize ()

Sets the smallest desired face size, expressed as a proportion of the width of the head to the image width. See setMinFaceSize(float).

public int getModeType ()

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 setModeType(int).

public int hashCode ()

public boolean isTrackingEnabled ()

Returns if face tracking is enabled, which will maintain a consistent ID for each face when processing consecutive frames. See setTrackingEnabled(boolean).

Send feedback about...

Need help? Visit our support page.