ObjectDetectorOptions

  • ObjectDetectorOptions provides configurations for the ObjectDetector with a bundled classifier model.

  • DetectedObject.Label will contain a category from PredefinedCategory when using these options.

  • DEFAULT_OPTIONS offers a pre-built configuration equivalent to using a basic ObjectDetectorOptions.Builder.

  • It inherits detection modes (single image or stream) from ObjectDetectorOptionsBase.

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