ImageLabelerOptions constructor

const ImageLabelerOptions({
  1. double confidenceThreshold = 0.5,
})

Constructor for ImageLabelerOptions.

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 ImageLabelerOptions({this.confidenceThreshold = 0.5})
    : assert(confidenceThreshold >= 0.0),
      assert(confidenceThreshold <= 1.0);