AI-generated Key Takeaways
-
ObjectDetectorOptions.Builder is used to build ObjectDetectorOptions.
-
Key methods available include enabling classification and multiple object detection, setting the detector mode, and specifying a custom executor.
-
By default, classification is off, and the detector detects only the prominent object.
-
The default detector mode is STREAM_MODE.
-
A custom executor can be set, otherwise, an internal background thread pool is used.
Builder of ObjectDetectorOptions.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| ObjectDetectorOptions |
build()
|
| ObjectDetectorOptions.Builder |
enableClassification()
Enables classification.
|
| ObjectDetectorOptions.Builder |
enableMultipleObjects()
Enables multiple objects for detection.
|
| ObjectDetectorOptions.Builder |
setDetectorMode(int detectorMode)
Sets the
DetectorMode, which contains two modes,
ObjectDetectorOptionsBase.STREAM_MODE and
ObjectDetectorOptionsBase.SINGLE_IMAGE_MODE.
|
| ObjectDetectorOptions.Builder |
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public ObjectDetectorOptions build ()
public ObjectDetectorOptions.Builder enableClassification ()
Enables classification.
By default, the classification is off.
public ObjectDetectorOptions.Builder enableMultipleObjects ()
Enables multiple objects for detection.
When enabled, the maximum number of detected objects per image is 5.
By default, the detector detects prominent object only.
public ObjectDetectorOptions.Builder setDetectorMode (int detectorMode)
Sets the
DetectorMode, which contains two modes,
ObjectDetectorOptionsBase.STREAM_MODE and
ObjectDetectorOptionsBase.SINGLE_IMAGE_MODE. For more details, please see
comments for
ObjectDetectorOptionsBase.STREAM_MODE and
ObjectDetectorOptionsBase.SINGLE_IMAGE_MODE.
By default, it is
ObjectDetectorOptionsBase.STREAM_MODE.