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

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