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
class | ObjectDetectorOptions.Builder | Builder of
ObjectDetectorOptions . |
Inherited Constant Summary
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
public static final ObjectDetectorOptions | DEFAULT_OPTIONS | The default
ObjectDetectorOptions . |
Inherited Method Summary
Fields
public static final ObjectDetectorOptions DEFAULT_OPTIONS
The default
ObjectDetectorOptions
.
This is equivalent to new ObjectDetectorOptions.Builder().build()
.