AI-generated Key Takeaways
-
ImageLabelerOptions.Builderis used to create instances ofImageLabelerOptions. -
You can set the confidence threshold for detected labels, which defaults to 0.5.
-
You have the option to set a custom Executor for the image labeling process, though it's generally not necessary for most clients.
Builder of ImageLabelerOptions.
Public Constructor Summary
|
Builder()
Creates a new builder to build
ImageLabelerOptions.
|
Public Method Summary
| ImageLabelerOptions |
build()
|
| ImageLabelerOptions.Builder |
setConfidenceThreshold(float confidenceThreshold)
Sets confidence threshold of detected labels.
|
| ImageLabelerOptions.Builder |
Inherited Method Summary
Public Constructors
public Builder ()
Creates a new builder to build ImageLabelerOptions.
Default confidenceThreshold is 0.5.
Public Methods
public ImageLabelerOptions build ()
public ImageLabelerOptions.Builder setConfidenceThreshold (float confidenceThreshold)
Sets confidence threshold of detected labels. Only labels detected with confidence higher than this threshold are returned.
Default is 0.5.
Throws
| IllegalArgumentException | if the confidenceThreshold is out of the range [0.0f, 1.0f]. |
|---|