# Smart Polygon (Legacy)

{% hint style="info" %}
Roboflow अब एक [बेहतर Smart Polygon अनुभव प्रदान करता है](/roboflow/roboflow-hi/annotate/ai-labeling/enhanced-smart-polygon-with-sam.md) जो Segment Anything Model (SAM) द्वारा संचालित है।
{% endhint %}

Smart Polygon, Roboflow Annotate में उपलब्ध एक annotation assistant है। आप किसी image में किसी object के लिए polygon annotation generate करने के लिए Smart Polygon का उपयोग कर सकते हैं।

## Smart Polygon का उपयोग कैसे करें

Smart Polygon feature का उपयोग करने के लिए, labeling toolbar में Smart Polygon पर click करें (Shortcut Key: `S`).

<figure><img src="https://lh5.googleusercontent.com/tJUGkNohp8gwqdaYO7U1nX7AKKVbi3sJidr0bWOaa4l6uLm7bCpqlKCwnSRwBCi7rQgAsVBaCu_nalTkcNvCPhtaOyciZrdNvEP0jadTq4aJS8YiB7Tytfr-FHEm6qDuTpI03sxBEviF1nXsMOYKXqz6vMPhv3rWyNre-I8-EngFL6OA6qbggFB10w" alt=""><figcaption><p>Annotation Toolbar में Smart Polygon</p></figcaption></figure>

फिर, जिस object को आप label करना चाहते हैं उसके center पर click करें और Smart Polygon उस object पर initial label लागू कर देगा।

<figure><img src="/files/e92840df195494fc20452ad1ccf70843018f3bf4" alt=""><figcaption><p>बैंगनी outline वह Smart Polygon annotation है जो एक click से generated हुआ है।</p></figcaption></figure>

यह पर्दे के पीछे एक machine learning model का उपयोग करके आपके object के लिए एक shape suggest करेगा।

आपका target polygon केवल एक single click से सटीक रूप से predict हो सकता है और आप enter दबाकर, फिर अपने object के लिए एक class select करके अगले object पर जा सकते हैं।

Polygon को object के अनुरूप बेहतर बनाने के लिए, object के उन areas पर click करें जिन्हें highlight नहीं किया जाना चाहिए। इन्हें negative points के रूप में जोड़ा जाएगा, जिन्हें annotation tool में एक छोटे red box से दर्शाया जाता है।

<figure><img src="/files/0d1d3724603b4f8152bca0d9fa995f216bb3bf2b" alt="" width="375"><figcaption><p>एक polygon जिसमें red points उन areas को दिखाते हैं जो पहले polygon का हिस्सा थे लेकिन अब हटा दिए गए हैं।</p></figcaption></figure>

Annotation tool के top-left में मौजूद Smart Polygon options का उपयोग करके, आप Convex Hull, Smooth, और Complex labels के बीच toggling करके अपने label में vertices की संख्या चुन सकते हैं। यदि आप कोई गलती करते हैं, तो आप अपने द्वारा रखे गए points को भी undo कर सकते हैं।

<figure><img src="https://blog.roboflow.com/content/images/2022/09/Screen-Shot-2022-09-26-at-4.19.59-PM.png" alt=""><figcaption><p>Smart Polygon Options (Convex Hull, Smooth, Complex labels)</p></figcaption></figure>

## Segmentation Layers को visualize करें

Smart Polygon semantic segmentation data को label करने में भी मददगार है। बस यह सुनिश्चित करें कि आप objects के z-indexes को सही तरीके से order करें ताकि masks ठीक से stack हों, जैसा आप अपने model को train करते समय चाहते हैं। आप `Layers` tab का उपयोग करके stacking को visualize कर सकते हैं। इससे आपको समझने में मदद मिलेगी कि आपका segmentation mask rasterized होने के बाद कैसा दिखेगा।

The `Layers` tab सभी Roboflow project types पर उपलब्ध है। बिना `Layers`के ordering को बदले bounding box को edit करने के लिए, बस `Layers` tab में उस Layer/annotation पर click करें जिसे आप edit करना चाहते हैं और फिर अपने edits करें।


---

# 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://docs.roboflow.com/roboflow/roboflow-hi/annotate/ai-labeling/enhanced-smart-polygon-with-sam/smart-polygon.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.
