Base class for all MediaPipe Tasks.
Signature:
export declare abstract class TaskRunner
Methods
| Method | Modifiers | Description |
|---|---|---|
| setOptions(options) | Configures the task with custom options. | |
| enableLogging(options) | ||
| close() | Closes and cleans up the resources held by this task. |
TaskRunner.setOptions()
Configures the task with custom options.
Signature:
abstract setOptions(options: TaskRunnerOptions): Promise<void>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| options | TaskRunnerOptions |
Returns:
Promise<void>
TaskRunner.enableLogging()
Signature:
enableLogging(options: TaskRunnerOptions): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| options | TaskRunnerOptions |
Returns:
void
TaskRunner.close()
Closes and cleans up the resources held by this task.
Signature:
close(): void;
Returns:
void