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

Get help quickly with Firebase support. Read our FAQs, Release notes, and guides, ask the community, then get direct support from the Firebase team.

Updated Oct 30, 2024

Firebase ML lets you add powerful machine learning features to your app with ready-to-use APIs and support for custom model deployment.

Updated Feb 21, 2025

Earn a badge for each topic by completing the quiz at the end of the pathway.

Updated Oct 3, 2024