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:
- MediaPipe's BaseOptions documentation
- ClassifierOptions, which is often used in conjunction to specify a classifier's desired behavior.
- Inheritance
-
- Object
- BaseInnerTaskOptions
- BaseBaseOptions
- BaseOptions
Constructors
- BaseOptions.memory(Uint8List buffer)
- Constructor for BaseOptions classes using an in-memory pointer to the MediaPipe SDK.
- BaseOptions.path(String path)
- Constructor for BaseOptions classes using a file system path.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- modelAssetBuffer → Uint8List?
-
The model asset file contents as bytes;
no setteroverride
- modelAssetPath → String?
-
Path to the model asset file.
no setteroverride
-
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
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - type → BaseOptionsType
-
Flavor of how this BaseOptions instance indicates where the rest of the
application should find the desired MediaPipe model.
no setteroverride
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