ObjectDetectorOptions

public class ObjectDetectorOptions extends ObjectDetectorOptionsBase

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

Inherited Constant Summary

com.google.mlkit.vision.objects.ObjectDetectorOptionsBase
int SINGLE_IMAGE_MODE It is designed for single images where the detection of each image is independent.
int STREAM_MODE It is designed for streaming frames from video or camera.

Field Summary

Inherited Method Summary

com.google.mlkit.vision.objects.ObjectDetectorOptionsBase
boolean
equals(Object o)
Indicates whether some other object is "equal to" this one.
int
hashCode()
Returns a hash code value for the object.
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
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().