Label class

A label that describes an object detected in an image.

Constructors

Label({required double confidence, required int index, required String text})
Constructor to create an instance of Label.
Label.fromJson(Map json)
Returns an instance of Label from a given json.
factory

Properties

confidence double
Gets the confidence of this label. Its range depends on the classifier model used, but by convention it should be 0, 1.
final
hashCode int
The hash code for this object.
no setterinherited
index int
Gets the index of this label.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Gets the text of this label.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited