LabelUtil class

Label operation utils.

Constructors

LabelUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

mapValueToLabels(TensorBuffer tensorBuffer, List<String> labels, int offset) List<String>
Maps an int value tensor to a list of string labels. It takes an list of strings as the dictionary. Example: if the given tensor is {3, 1, 0}, and given labels is {"background", "apple", "banana", "cherry", "date"}, the result will be {"date", "banana", "apple"}.