Builder of
FirebaseVisionOnDeviceImageLabelerOptions.
Public Constructor Summary
|
FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder(FirebaseAutoMLLocalModel
localModel)
Creates a new builder to build
FirebaseVisionOnDeviceAutoMLImageLabelerOptions with a local model
FirebaseAutoMLLocalModel.
|
|
|
FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder(FirebaseAutoMLRemoteModel
remoteModel)
Creates a new builder to build
FirebaseVisionOnDeviceAutoMLImageLabelerOptions with a remote model
FirebaseAutoMLRemoteModel.
|
Public Method Summary
| FirebaseVisionOnDeviceAutoMLImageLabelerOptions |
build()
|
| FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder |
setConfidenceThreshold(float confidenceThreshold)
Sets the confidence threshold of detected labels.
|
Inherited Method Summary
Public Constructors
public FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder (FirebaseAutoMLLocalModel localModel)
Creates a new builder to build
FirebaseVisionOnDeviceAutoMLImageLabelerOptions with a local model
FirebaseAutoMLLocalModel.
public FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder (FirebaseAutoMLRemoteModel remoteModel)
Creates a new builder to build
FirebaseVisionOnDeviceAutoMLImageLabelerOptions with a remote model
FirebaseAutoMLRemoteModel.
Public Methods
public FirebaseVisionOnDeviceAutoMLImageLabelerOptions build ()
public FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder setConfidenceThreshold (float confidenceThreshold)
Sets the confidence threshold of detected labels. Only labels detected with confidence higher than or equal to this threshold are returned.
Default is 0.5f.
Throws
| IllegalArgumentException | if the confidenceThreshold is out of the range [0.0f, 1.0f]. |
|---|