FirebaseVisionCloudImageLabelerOptions.Builder

public static class FirebaseVisionCloudImageLabelerOptions.Builder extends Object

Public Constructor Summary

Public Method Summary

FirebaseVisionCloudImageLabelerOptions
FirebaseVisionCloudImageLabelerOptions.Builder
enforceCertFingerprintMatch()
Only allow registered application instances with matching certificate fingerprint to use Cloud Vision API.
FirebaseVisionCloudImageLabelerOptions.Builder
setConfidenceThreshold(float confidenceThreshold)
Sets confidence threshold of detected labels.

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Constructors

public FirebaseVisionCloudImageLabelerOptions.Builder ()

Public Methods

public FirebaseVisionCloudImageLabelerOptions.Builder enforceCertFingerprintMatch ()

Only allow registered application instances with matching certificate fingerprint to use Cloud Vision API.

Do not set this for debug build if you use simulators to test.

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