<br />

Options to configure the MediaPipe Interactive Segmenter Task.

**Signature:**

```typescript
export declare interface InteractiveSegmenterOptions extends TaskRunnerOptions 
```

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [canvas](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.interactivesegmenteroptions.md.txt#interactivesegmenteroptionscanvas) |   | 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:**

```typescript
canvas?: HTMLCanvasElement | OffscreenCanvas;
```