public static class FirebaseVisionOnDeviceImageLabelerOptions.Builder extends Object
Builder of
FirebaseVisionOnDeviceImageLabelerOptions.
Public Constructor Summary
Public Method Summary
| FirebaseVisionOnDeviceImageLabelerOptions |
build()
|
| FirebaseVisionOnDeviceImageLabelerOptions.Builder |
setConfidenceThreshold(float confidenceThreshold)
Sets confidence threshold of detected labels.
|
Inherited Method Summary
Public Constructors
public FirebaseVisionOnDeviceImageLabelerOptions.Builder ()
Public Methods
public FirebaseVisionOnDeviceImageLabelerOptions build ()
public FirebaseVisionOnDeviceImageLabelerOptions.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]. |
|---|