Google is committed to advancing racial equity for Black communities. See how.


public class FirebaseVisionOnDeviceImageLabelerOptions extends Object

This class is deprecated.
The standalone ML Kit SDK replaces this API. For more information, refer to the migration guide.

Options for on device image labeler. Confidence threshold could be provided for the label detection.

For example, if the confidence threshold is set to 0.7, only labels with confidence >= 0.7 would be returned. The default threshold is 0.5.

Nested Class Summary

class FirebaseVisionOnDeviceImageLabelerOptions.Builder Builder of FirebaseVisionOnDeviceImageLabelerOptions

Public Method Summary

Gets the confidence threshold of labels to be detected.

Inherited Method Summary

Public Methods

public boolean equals (Object o)

public float getConfidenceThreshold ()

Gets the confidence threshold of labels to be detected.

public int hashCode ()