ClassifierOptions class
Dart representation of MediaPipe's "ClassifierOptions" concept.
Classifier options shared across MediaPipe classification tasks.
See also:
- MediaPipe's ClassifierOptions documentation
- BaseOptions, which is often used in conjunction to specify a classifier's desired behavior.
- Inheritance
-
- Object
- BaseInnerTaskOptions
- BaseClassifierOptions
- ClassifierOptions
- Mixed-in types
-
- InnerTaskOptions<
ClassifierOptions>
- InnerTaskOptions<
Constructors
Properties
-
categoryAllowlist
→ List<
String> ? -
Allowlist of category names.
final
-
categoryDenylist
→ List<
String> ? -
Denylist of category names.
final
- displayNamesLocale → String?
-
The locale to use for display names specified through the TFLite Model
Metadata.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxResults → int?
-
The maximum number of top-scored classification results to return.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scoreThreshold → double?
-
If set, establishes a minimum
score
and leads to the rejection of any categories with lowerscore
values.final - stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited
Methods
-
assignToStruct(
ClassifierOptions struct) → void -
Assigns all values to an existing struct. This method should be
implemented by all InnerTaskOptions types to hydrate a struct, but not
for the creation of that struct. Allocation and management of the actual
structs are handled by TaskOptions.copyToNative on the wrapping options
object.
override
-
freeStructFields(
ClassifierOptions struct) → void -
Deallocates any memory on the
struct
that would be missed simply by callingcalloc.free(struct)
, which the parent who called this method will do after this method completes.override -
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