MpBaseOptions class final
MpBaseOptions: the model, delegate and host every task's options embed.
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter -
appId
↔ Pointer<
Char> -
The app's ID, such as an Android package name, or null.
getter/setter pair
-
appVersion
↔ Pointer<
Char> -
The app's version, such as an Android version code, or null.
getter/setter pair
-
caBundlePath
↔ Pointer<
Char> -
The CA bundle Google's usage logging uses, or null.
getter/setter pair
- delegate ↔ int
-
The
MpDelegatethe graph runs on: 1 is the CPU, 2 the GPU, and 0 the task's default. Google renumbered them in 1.2.1, when 0 stopped being the CPU.getter/setter pair - fileDescriptor ↔ int
-
A model file opened with
open(2), or -1 for none.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- hostEnvironment ↔ int
-
The
MpHostEnvironmentGoogle's usage log records: 5 is Flutter.getter/setter pair - hostSystem ↔ int
-
The
MpHostSystem: the OS the task runs on.getter/setter pair -
hostVersion
↔ Pointer<
Char> -
The host's version, which Google's usage log records.
getter/setter pair
-
modelAssetBuffer
↔ Pointer<
Char> -
The model's contents, or null to read modelAssetPath.
getter/setter pair
- modelAssetBufferCount ↔ int
-
The length of modelAssetBuffer in bytes, or 0.
getter/setter pair
-
modelAssetPath
↔ Pointer<
Char> -
The model file Google opens and maps into memory.
getter/setter pair
-
npuDispatchLibraryDir
↔ Pointer<
Char> -
The folder holding the NPU dispatch library, or null for none.
Added in MediaPipe 1.2.3.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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