> For the complete documentation index, see [llms.txt](https://docs.imerit.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit.net/plugins/first-party-ango-plugins/sam-3.md).

# SAM 3

## Overview

The One-Click Segmentation plugin allows you to create complex and detailed segmentations of an object starting with one point or one bounding box.

The SAM 3 Plugin uses the Segment Anything Model 3 to automatically generate segmentation masks from input prompts and convert them into segmentation or polygon annotations.

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td align="center">SAM 3</td><td data-object-fit="contain"><a href="https://angohub-docs-assets.s3.eu-central-1.amazonaws.com/plugin-icons-banners/One-Click-Seg.png">https://angohub-docs-assets.s3.eu-central-1.amazonaws.com/plugin-icons-banners/One-Click-Seg.png</a></td></tr></tbody></table>

## Plugin Functionality <a href="#plugin-functionality" id="plugin-functionality"></a>

The SAM 3 plugin enables automatic segmentation generation using the Segment Anything Model. It produces high-quality segmentation annotations from a text prompt, dramatically speeding up the annotation process for image and video assets.

<figure><img src="/files/vWkn465mQgW05HemMY7Y" alt=""><figcaption></figcaption></figure>

### Supported Data Types <a href="#supported-data-types" id="supported-data-types"></a>

* Image
* Video \[Limited Support]

### Supported Annotation Tools <a href="#supported-annotation-tools" id="supported-annotation-tools"></a>

* Segmentation
* Polygon

<figure><img src="/files/XNxUM4xluongXJXDhqeQ" alt=""><figcaption></figcaption></figure>

## Plugin Configuration <a href="#plugin-configuration" id="plugin-configuration"></a>

The **Overwrite** setting in model plugins controls whether existing annotations are replaced or kept. When enabled, the plugin replaces all existing annotations with new model predictions; when disabled, it simply adds the new results without deleting what’s already there.

\
You may vary a number of settings related to the model plugin from the **Config JSON** field. Each option is detailed below:

```json
{
  "prompt": "",
  "threshold": 0.8,
  "polygon_simplification_tolerance": 0.9
}
```

* **"prompt":** Specifies the object, class, or region that should be segmented in the image. The model uses this text prompt to identify and generate segmentation masks for matching objects. Providing a clear and specific prompt typically improves segmentation accuracy.
  * Example:
    * <kbd>"prompt": "red apple"</kbd>
    * <kbd>"prompt": "penguin"</kbd>

* **"threshold":** Sets the confidence threshold for accepting segmentation predictions. Predictions with a confidence score below this value are filtered out.
  * Example:
    * <kbd>"threshold": 0.8</kbd>

* **"polygon\_simplification\_tolerance":** Controls how much the output polygons are simplified to reduce complexity. Higher values produce simpler polygons with fewer vertices, while lower values preserve more detail.
  * Example:
    * <kbd>"polygon\_simplification\_tolerance": 0.9</kbd>
