# FaceDetectorOptions

public class **FaceDetectorOptions** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Options for `https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetector`.

### Nested Class Summary

|---|---|---|---|
| class | [FaceDetectorOptions.Builder](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.Builder) || Builder class of `https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions`. |
| @interface | [FaceDetectorOptions.ClassificationMode](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.ClassificationMode) || Defines options for characterizing attributes such as "smiling" \* and "eyes open". |
| @interface | [FaceDetectorOptions.ContourMode](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.ContourMode) || Defines options to enable face contours or not. |
| @interface | [FaceDetectorOptions.LandmarkMode](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.LandmarkMode) || Defines options to enable face landmarks or not. |
| @interface | [FaceDetectorOptions.PerformanceMode](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.PerformanceMode) || Defines options to control accuracy / speed trade-offs in performing face detection. |

### Constant Summary

|---|---|---|
| int | [CLASSIFICATION_MODE_ALL](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#CLASSIFICATION_MODE_ALL) | Performs "eyes open" and "smiling" classification. |
| int | [CLASSIFICATION_MODE_NONE](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#CLASSIFICATION_MODE_NONE) | Does not perform classification. |
| int | [CONTOUR_MODE_ALL](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#CONTOUR_MODE_ALL) | Detects `https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceContour` for a given face. |
| int | [CONTOUR_MODE_NONE](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#CONTOUR_MODE_NONE) | Does not perform contour detection. |
| int | [LANDMARK_MODE_ALL](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#LANDMARK_MODE_ALL) | Detects `https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceLandmark` for a given face. |
| int | [LANDMARK_MODE_NONE](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#LANDMARK_MODE_NONE) | Does not perform landmark detection. |
| int | [PERFORMANCE_MODE_ACCURATE](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#PERFORMANCE_MODE_ACCURATE) | Indicates a preference for accuracy in the options that may make an accuracy vs. |
| int | [PERFORMANCE_MODE_FAST](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#PERFORMANCE_MODE_FAST) | Indicates a preference for speed in the options that may make an accuracy vs. |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) o) Indicates whether some other object is "equal to" this one. |
| int | [hashCode](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#hashCode())() Returns a hash code value for the object. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [toString](https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#toString())() |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## 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 `https://developers.google.com/android/reference/com/google/mlkit/vision/face/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 `https://developers.google.com/android/reference/com/google/mlkit/vision/face/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](https://developer.android.com/reference/java/lang/Object.html) o)

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

#### public int **hashCode** ()

Returns a hash code value for the object.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **toString** ()