Go to console

FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder

public static class FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder extends Object

Public Constructor Summary

Public Method Summary

FirebaseVisionOnDeviceAutoMLImageLabelerOptions
FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder
setConfidenceThreshold(float confidenceThreshold)
Sets the confidence threshold of detected labels.
FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder
setLocalModelName(String localModelName)
Sets the name of the local model.
FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder
setRemoteModelName(String remoteModelName)
Sets the name of the remote model.

Inherited Method Summary

Public Constructors

public FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder ()

Public Methods

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].

public FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder setLocalModelName (String localModelName)

Sets the name of the local model.

public FirebaseVisionOnDeviceAutoMLImageLabelerOptions.Builder setRemoteModelName (String remoteModelName)

Sets the name of the remote model. This must be the model name in the Firebase Console backend.