Builder of CustomObjectDetectorOptions.
|
Builder(LocalModel localModel)
Creates a new builder to build
CustomObjectDetectorOptions with LocalModel.
|
|
|
Builder(CustomRemoteModel remoteModel)
Creates a new builder to build
CustomObjectDetectorOptions with CustomRemoteModel.
|
| CustomObjectDetectorOptions |
build()
|
| CustomObjectDetectorOptions.Builder |
enableClassification()
Enables classification.
|
| CustomObjectDetectorOptions.Builder |
enableMultipleObjects()
Enables multiple objects for detection.
|
| CustomObjectDetectorOptions.Builder |
setClassificationConfidenceThreshold(float
classificationConfidenceThreshold)
Sets the classification confidence threshold of labels to be detected.
|
| CustomObjectDetectorOptions.Builder |
setDetectorMode(int detectorMode)
Sets the
DetectorMode, which contains two modes,
ObjectDetectorOptionsBase.STREAM_MODE and
ObjectDetectorOptionsBase.SINGLE_IMAGE_MODE.
|
| CustomObjectDetectorOptions.Builder | |
| CustomObjectDetectorOptions.Builder |
setMaxPerObjectLabelCount(int maxPerObjectLabelCount)
Sets the maximum number of labels per object that the detector will return.
|
Creates a new builder to build
CustomObjectDetectorOptions with LocalModel.
Creates a new builder to build
CustomObjectDetectorOptions with CustomRemoteModel.
Enables classification.
By default, the classification is off.
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.
Sets the classification confidence threshold of labels to be detected.
If not set, any classifier threshold specified by the model’s metadata will be used, or 0.0 will be used if no such metadata or threshold.
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.
Sets the maximum number of labels per object that the detector will return.
If not set, the default value of 10 will be used.