# Auto Bounding Box Selection with Segment Anything Model (SAM)

Selection of bounding box automatically is made possible with the[Segment Anything Model (SAM)](https://segment-anything.com/) . One can toggle this feature from the configuration of server and client. When enabled, a wand icon will appear in the toolbar. Clicking the wand icon will initiate auto-annotation and display the results

<figure><img src="/files/nPA2f1t3GszUFEeBJt2L" alt=""><figcaption><p>Auto Bounding Box Selection</p></figcaption></figure>

The result of the above auto bouding box selection is shown below.

<figure><img src="/files/QPhYmHXianIuskBxNF0y" alt=""><figcaption><p>Auto Annotation Result.</p></figcaption></figure>

{% hint style="warning" %}
Annotation times may vary depending on the machine and processing power. The server will take some time to boot on the initial run as it downloads the model file. Subsequent runs will use the already downloaded file, reducing the startup time.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://annotate-docs.dwaste.live/example/auto-bounding-box-selection-with-segment-anything-model-sam.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
