<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/vision/interactive_segmenter_legacy.py#L127-L148) |

Options for the interactive segmenter task.

```python
mp.tasks.vision.InteractiveSegmenterLegacyOptions(
    base_options: `mp.tasks.BaseOptions`,
    output_confidence_masks: bool = True,
    output_category_mask: bool = False
)
```

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `base_options` | Base options for the interactive segmenter task. |
| `output_confidence_masks` | Whether to output confidence masks. |
| `output_category_mask` | Whether to output category mask. |

<br />

## Methods

### `to_ctypes`

[View source](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/vision/interactive_segmenter_legacy.py#L141-L148)

```python
to_ctypes() -> MpInteractiveSegmenterLegacyOptionsC
```

Generates an MpInteractiveSegmenterLegacyOptionsC ctypes struct.

### `__eq__`

```python
__eq__(
    other
)
```

Return self==value.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| output_category_mask | `False` |
| output_confidence_masks | `True` |

<br />