CloudImageLabelerOptions constructor
const
CloudImageLabelerOptions({
- double confidenceThreshold = 0.5,
Constructor for CloudImageLabelerOptions.
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.
Implementation
const CloudImageLabelerOptions({this.confidenceThreshold = 0.5})
: assert(confidenceThreshold >= 0.0),
assert(confidenceThreshold <= 1.0);