# ObjectDetectorOptions

public class **ObjectDetectorOptions** extends [ObjectDetectorOptionsBase](https://developers.google.com/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase.md.txt)  
Options for `ObjectDetector`
with a predefined and bundled classifier model.

When using `ObjectDetectorOptions`
to create an `ObjectDetector`,
each `DetectedObject.Label`
will have one of the categories in `PredefinedCategory`
as its text field.

### Nested Class Summary

|---|---|---|---|
| class | [ObjectDetectorOptions.Builder](https://developers.google.com/android/reference/com/google/mlkit/vision/objects/defaults/ObjectDetectorOptions.Builder.md.txt) || Builder of ` ObjectDetectorOptions`. |

### Inherited Constant Summary

From class [com.google.mlkit.vision.objects.ObjectDetectorOptionsBase](https://developers.google.com/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase.md.txt)

|---|---|---|
| int | [SINGLE_IMAGE_MODE](https://developers.google.com/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase.md.txt#SINGLE_IMAGE_MODE) | It is designed for single images where the detection of each image is independent. |
| int | [STREAM_MODE](https://developers.google.com/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase.md.txt#STREAM_MODE) | It is designed for streaming frames from video or camera. |

### Field Summary

|---|---|---|
| public static final [ObjectDetectorOptions](https://developers.google.com/android/reference/com/google/mlkit/vision/objects/defaults/ObjectDetectorOptions.md.txt) | [DEFAULT_OPTIONS](https://developers.google.com/android/reference/com/google/mlkit/vision/objects/defaults/ObjectDetectorOptions.md.txt#DEFAULT_OPTIONS) | The default ` ObjectDetectorOptions`. |

### Inherited Method Summary

From class [com.google.mlkit.vision.objects.ObjectDetectorOptionsBase](https://developers.google.com/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase.md.txt)

|---|---|
| boolean | [equals](https://developers.google.com/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase.md.txt#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/objects/ObjectDetectorOptionsBase.md.txt#hashCode())() Returns a hash code value for the object. |

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() |

## Fields

#### public static final ObjectDetectorOptions **DEFAULT_OPTIONS**

The default `
ObjectDetectorOptions`.

This is equivalent to `new ObjectDetectorOptions.Builder().build()`.