MpCategory class final
Defines a single classification result.
The label maps packed into the TFLite Model Metadata 1 are used to populate the 'category_name' and 'display_name' fields.
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter -
category_name
↔ Pointer<
Char> -
The optional ID for the category, read from the label map packed in the
TFLite Model Metadata if present. Not necessarily human-readable.
getter/setter pair
-
display_name
↔ Pointer<
Char> -
The optional human-readable name for the category, read from the label map
packed in the TFLite Model Metadata if present.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- index ↔ int
-
The index of the category in the classification model output.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score ↔ double
-
The score for this category, e.g. (but not necessarily) a probability in
0,1.getter/setter pair
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