ObjectDetectorOptions

  • ObjectDetectorOptions are options for ObjectDetector with a predefined and bundled classifier model.

  • Each DetectedObject.Label will have one of the categories in PredefinedCategory as its text field.

  • ObjectDetectorOptions include a Builder class for creating instances.

  • Inherited constants include SINGLE_IMAGE_MODE and STREAM_MODE for different use cases.

  • DEFAULT_OPTIONS provides a standard configuration equivalent to a new Builder instance.

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

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