BaseOptions class

Dart representation of MediaPipe's "BaseOptions" concept.

Used to configure various classifiers by specifying the model they will use for computation.

See also:

Inheritance
Mixed-in types

Constructors

BaseOptions.memory(Uint8List buffer)
Constructor for BaseOptions classes using an in-memory pointer to the MediaPipe SDK.
factory
BaseOptions.path(String path)
Constructor for BaseOptions classes using a file system path.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
modelAssetBuffer Uint8List?
The model asset file contents as bytes;
final
modelAssetPath String?
Path to the model asset file.
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
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
type BaseOptionsType
Flavor of how this BaseOptions instance indicates where the rest of the application should find the desired MediaPipe model.
final

Methods

assignToStruct(BaseOptions 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(BaseOptions 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