ClassifierOptions class

Dart representation of MediaPipe's "ClassifierOptions" concept.

Classifier options shared across MediaPipe classification tasks.

See also:

Inheritance
Mixed-in types

Constructors

ClassifierOptions({String? displayNamesLocale, int? maxResults, double? scoreThreshold, List<String>? categoryAllowlist, List<String>? categoryDenylist})
Dart representation of MediaPipe's "ClassifierOptions" concept.
const

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 lower score values.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
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 calling calloc.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