MpClassifierOptions class final

Classifier options for MediaPipe C classification Tasks.

Inheritance
Implemented types
Available extensions

Constructors

MpClassifierOptions()

Properties

address → Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
category_allowlist ↔ Pointer<Pointer<Char>>
The allowlist of category names. If non-empty, detection results whose category name is not in this set will be filtered out. Duplicate or unknown category names are ignored. Mutually exclusive with category_denylist.
getter/setter pair
category_allowlist_count ↔ int
The number of elements in the category allowlist.
getter/setter pair
category_denylist ↔ Pointer<Pointer<Char>>
The denylist of category names. If non-empty, detection results whose category name is in this set will be filtered out. Duplicate or unknown category names are ignored. Mutually exclusive with category_allowlist.
getter/setter pair
category_denylist_count ↔ int
The number of elements in the category denylist.
getter/setter pair
display_names_locale ↔ Pointer<Char>
The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults to English.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
max_results ↔ int
The maximum number of top-scored classification results to return. If < 0, all available results will be returned. If 0, an invalid argument error is returned.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score_threshold ↔ double
Score threshold to override the one provided in the model metadata (if any). Results below this value are rejected.
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

Static Methods

$allocate(Allocator $allocator, {required Pointer<Char> display_names_locale, required int max_results, required double score_threshold, required Pointer<Pointer<Char>> category_allowlist, required int category_allowlist_count, required Pointer<Pointer<Char>> category_denylist, required int category_denylist_count}) → Pointer<MpClassifierOptions>