Join us in person and online for Firebase Summit on October 18, 2022. Learn how Firebase can help you accelerate app development, release your app with confidence, and scale with ease. Register now

FirebaseVisionLabelDetectorOptions.Builder

Stay organized with collections Save and categorize content based on your preferences.
public static class FirebaseVisionLabelDetectorOptions.Builder extends Object

Public Constructor Summary

Public Method Summary

FirebaseVisionLabelDetectorOptions
FirebaseVisionLabelDetectorOptions.Builder
setConfidenceThreshold(float confidenceThreshold)
Sets confidence threshold of detected labels.

Inherited Method Summary

Public Constructors

public FirebaseVisionLabelDetectorOptions.Builder ()

Public Methods

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