Options to configure the MediaPipe Interactive Segmenter Task.
Signature:
export declare interface InteractiveSegmenterOptions extends TaskRunnerOptions
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| canvas | HTMLCanvasElement | OffscreenCanvas | The canvas element or offscreen canvas to use for WebGL context creation and mask rendering/transfers. If not provided, a canvas is created internally. |
InteractiveSegmenterOptions.canvas
The canvas element or offscreen canvas to use for WebGL context creation and mask rendering/transfers. If not provided, a canvas is created internally.
Signature:
canvas?: HTMLCanvasElement | OffscreenCanvas;