MpBaseOptions class final

Base options for MediaPipe C Tasks.

Inheritance
Implemented types
Available extensions

Constructors

MpBaseOptions()

Properties

address → Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
app_id ↔ Pointer<Char>
The app id of the host environment, e.g., Android package name.
getter/setter pair
app_version ↔ Pointer<Char>
The app version of the host environment, e.g., Android version code.
getter/setter pair
ca_bundle_path ↔ Pointer<Char>
The path to CA bundle to use for usage logging.
getter/setter pair
delegate ↔ MpDelegate
getter/setter pair
delegateAsInt ↔ int
The delegate to use for the MediaPipe graph.
getter/setter pair
file_descriptor ↔ int
The file descriptor to a file opened with open(2).
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
host_environment ↔ MpHostEnvironment
getter/setter pair
host_environmentAsInt ↔ int
The environment on which the task is running.
getter/setter pair
host_system ↔ MpHostSystem
getter/setter pair
host_systemAsInt ↔ int
The OS on which the task is running.
getter/setter pair
host_version ↔ Pointer<Char>
The host version, e.g., python version.
getter/setter pair
model_asset_buffer ↔ Pointer<Char>
The model asset file contents as bytes.
getter/setter pair
model_asset_buffer_count ↔ int
The size of the model assets buffer (or 0 if not set).
getter/setter pair
model_asset_path ↔ Pointer<Char>
The path to the model asset to open and mmap in memory.
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

Static Methods

$allocate(Allocator $allocator, {required Pointer<Char> model_asset_buffer, required int model_asset_buffer_count, required Pointer<Char> model_asset_path, required int file_descriptor, required MpDelegate delegate, required MpHostEnvironment host_environment, required MpHostSystem host_system, required Pointer<Char> host_version, required Pointer<Char> ca_bundle_path, required Pointer<Char> app_id, required Pointer<Char> app_version}) → Pointer<MpBaseOptions>