# Auto Polygons

The Auto polygon tool allows you to boost your labeling productivity.

You create a bounding box around the object you wish to label and an AI automatically transforms this bounding box into a precise polygon around your object.

![Auto Polygon. The fastest way to create a polygon around your object.](https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FmlcOUCvprZtZ0FtO8CM5%2Foutput.gif?alt=media\&token=26fe8574-7bc0-4a57-8e8e-014ec5039fc2)

## Refinements

### Move or add Auto Polygon keypoints

You can refine the automatically generated polygons by simply moving the target keypoint ![](https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FT3H1ICfMbkFxmqOXtTpx%2FType%3Dtarget%2C%20Size%3D16px.png?alt=media\&token=f00483ba-f804-42c2-92ca-a02fb30ade52) and/or adding inside keypoints ![](https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FlrRm7NwmQZMf0egV4lRs%2FType%3Dinside%2C%20Size%3D16px.png?alt=media\&token=2da8cf22-db4b-4b92-94d1-64022639a6f5) and outside keypoints ![](https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FLcI3DRCvpdSr1YgOCTgg%2FType%3Doutside%2C%20Size%3D16px.png?alt=media\&token=cdcda91c-46af-4768-b5bf-3ab0b73d6247).

This is as simple as moving the target keypoint ![](https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FT3H1ICfMbkFxmqOXtTpx%2FType%3Dtarget%2C%20Size%3D16px.png?alt=media\&token=f00483ba-f804-42c2-92ca-a02fb30ade52) and/or doing a click inside or outside the created polygon.

* ![](https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FT3H1ICfMbkFxmqOXtTpx%2FType%3Dtarget%2C%20Size%3D16px.png?alt=media\&token=f00483ba-f804-42c2-92ca-a02fb30ade52) Target keypoint. **It must always be on the object you wish to label**. Else move it on the object.
* ![](https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FLcI3DRCvpdSr1YgOCTgg%2FType%3Doutside%2C%20Size%3D16px.png?alt=media\&token=cdcda91c-46af-4768-b5bf-3ab0b73d6247) Outside keypoint. A click inside the polygon will add an outside keypoint and exclude this area from the polygon label.
* ![](https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FlrRm7NwmQZMf0egV4lRs%2FType%3Dinside%2C%20Size%3D16px.png?alt=media\&token=2da8cf22-db4b-4b92-94d1-64022639a6f5) Inside keypoint. A click outside the polygon will add an inside keypoint and include this area to the polygon label.

{% hint style="info" %}
**Always start** by moving the target keypoint ![](https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FT3H1ICfMbkFxmqOXtTpx%2FType%3Dtarget%2C%20Size%3D16px.png?alt=media\&token=f00483ba-f804-42c2-92ca-a02fb30ade52) to another position on the object if the generated polygon is not good enough.\
\
**Only after adjusting the target keypoint should you start** adding inside and outside keypoints.
{% endhint %}

{% embed url="<https://youtu.be/uxS4eW2p5Cw>" %}
Easily adjust an Auto Polygon geometry by adding inside or outside keypoints
{% endembed %}

### Manually adjust the polygon's geometry

* Click on <img src="https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FAsoNH5EuH8HE6tNvnI9V%2FButton.png?alt=media&#x26;token=2bd1be91-97fb-4d61-9037-3f918cc32983" alt="" data-size="line"> to activate the selection mode (or press `v` for the shortcut)
* Click on the polygon you want to edit
* Select the polygon edition mode <img src="https://3560202825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhJNEsutg2ISXpTj5K5%2Fuploads%2FjVpV1iplbAiagoMUpeL4%2FToggle%20Button%20Edit.png?alt=media&#x26;token=76647e89-e245-405c-8971-faa260449b63" alt="" data-size="line">(next to the class selection menu in the top left). You can press  `e` to switch between both edition modes.
* You can now drag any points on the contour to adjust the polygon geometry

This edition mode is also illustrated in the above video.
