> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/annotations/image-annotation.md). Agents can also search and read this documentation through its [MCP server](https://docs.unitlab.ai/~gitbook/mcp).

# Image Annotation

Label still images with boxes, polygons, masks, lines, points, cuboids and skeletons, with AI assistance and a right-click menu for every object.

Use an image project to label photos and camera frames: a robot's wrist camera, a test-bench camera or a warehouse shelf. Each class in the ontology sets the shape you draw, so annotators always get the right tool.

![Image Workbench with a smartwatch test-bench frame labeled with watch boxes, hand polygons, a charging pad polygon, a cable line and button points](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FjSirQF4LzAXBLIpDWDPu%2Fimage-workbench-hero.webp?alt=media)

*A test-bench frame with two **Watch** boxes, two **Hand** polygons, a **Charging pad** polygon, a **Cable** line and two **Button** points. The left toolbar holds the tools, the right panel lists the objects.*

## When to use it

| You need                            | Use                                         |
| ----------------------------------- | ------------------------------------------- |
| Where an object is                  | **Bounding box** (`B`)                      |
| Its exact outline as a vector       | **Polygon** (`P`)                           |
| Its exact pixels                    | **Brush** mask (`F`), with **Eraser** (`E`) |
| A cable, edge or path               | **Polyline** (`L`)                          |
| A single location, such as a button | **Keypoint** (`U`)                          |
| A pose or a robot arm's joints      | **Skeleton** (`J`)                          |
| A box in perspective                | **Cuboid** (`N`)                            |
| A fact about the whole image        | **Item properties** in the right panel      |

## Label an image

1. Open the item from the project's **Data** page or your queue.
2. Choose a class in the header dropdown, or press its number key. The matching tool opens.
3. Draw the object. A box needs one drag; a polygon needs clicks around the outline, finished with a double-click or `Esc`.
4. Fill in the object's properties in the right panel.
5. Check the whole image, then send the item on with the button in the top right, such as **Send to Review**.

{% hint style="info" %}
In **Pan** (`V`), the Workbench dims the image around your objects so they stand out. Pick any drawing tool to see the image at full brightness.
{% endhint %}

## Let AI draw the first version

* **Magic Touch** (`M`): click an object to get its mask or polygon.
* **Detect all objects** (`S`): finds every object of the selected class in the image.
* **Find similar** (`Shift` + `S`): select one object, and Unitlab proposes the look-alikes in the same image.

Every proposal is a normal object you can edit or delete. The demo above was labeled the same way through the Unitlab MCP server: `segment_object` turned one box per hand into a polygon, then an annotator checked the result.

In the clip below, every plum on a branch is labeled from one text prompt. See [Prompt Labeling](https://docs.unitlab.ai/documentation/auto-labeling/prompt-labeling.md).

{% embed url="<https://homepage-files.s3.us-east-2.amazonaws.com/hero-videos/hero/auto-labeling-2.mp4>" %}

## Use the canvas menu

Right-click a selected object to open its menu. It changes the class, refines the shape, finds similar objects, changes the drawing order, hides or deletes the object.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FmPJbFoCHTglMfPMeOEwN%2Fimage-canvas-action-menu.webp?alt=media" alt="Right-click menu on a selected hand polygon with class, Smart Refine, Simplify, Find similar, order, Hide and Delete object" width="420"><figcaption><p>The menu of a selected <strong>Hand</strong> polygon.</p></figcaption></figure>

| Menu item                                                                     | What it does                                                     |
| ----------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| Class dropdown                                                                | Moves the object to another class.                               |
| **Smart Refine**                                                              | Snaps the outline to the object's edges.                         |
| **Simplify**                                                                  | Removes extra points with a slider. Preview, then **Apply**.     |
| **Remove small holes**                                                        | Shown on polygons with holes. Drops holes from the smallest up.  |
| **Find similar**                                                              | Proposes look-alike objects in the image.                        |
| **Bring to front** / **Bring forward** / **Send backward** / **Send to back** | Changes which overlapping object is on top (`W`, `O`, `I`, `Q`). |
| **Hide**                                                                      | Hides the object while you work.                                 |
| **Delete object**                                                             | Deletes it (`Del`).                                              |

## Draw a curved outline with Pencil

Pencil is the fastest way to trace a curved or irregular object.

1. Choose a polygon class, then the pencil icon in the header, or press `Shift` + `5`.
2. Press and drag along the outline. The open line shows its points as you go.
3. Release back at the starting point to close the polygon.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FnW0Aa8Pkboxn2VicRLD8%2Fimage-pencil-outline.webp?alt=media" alt="Pencil stroke in progress along the edge of a green charging pad between two watches" width="440"><figcaption><p>A Pencil stroke halfway around the charging pad.</p></figcaption></figure>

If you release somewhere else, the line stays open: press again to continue it, or double-click to close it. To fix a stretch of an existing outline, start the stroke on the selected polygon's edge and end it on the edge again.

## Cut or remove a hole

A hole leaves an area out of a polygon, such as the gap inside a ring or a sticker on a pad.

1. Select the polygon.
2. With **Pencil** or **Vertex**, draw a closed loop fully inside it. The loop becomes a hole. You can also cut one with the Polygon **Eraser**.
3. To remove a hole, right-click inside it and choose **Delete hole**. To remove many small ones, right-click the polygon and choose **Remove small holes**, move the slider, then **Apply**.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FjXxylBxjA79oRBabzpg1%2Fimage-polygon-hole.webp?alt=media" alt="Charging pad polygon with a hole cut around its printed logo" width="400"><figcaption><p>A hole drawn with Pencil around the printed logo.</p></figcaption></figure>

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FULGTVd781bh6zXyihwvY%2Fimage-polygon-menu-holes.webp?alt=media" alt="Charging pad menu with Remove small holes" width="300"><figcaption><p><strong>Remove small holes</strong> appears once a polygon has holes.</p></figcaption></figure>

A loop that crosses the outer edge reshapes the outline instead of making a hole.

## More polygon modes

The Polygon tool header has five modes:

| Mode       | Key           | Use it to                                                                               |
| ---------- | ------------- | --------------------------------------------------------------------------------------- |
| **Vertex** | `Shift` + `1` | Click points one at a time. Drag a point to move it; click **+** on an edge to add one. |
| **Brush**  | `Shift` + `2` | Paint area onto a polygon.                                                              |
| **Eraser** | `E`           | Cut area out of a polygon.                                                              |
| **Slice**  | `Shift` + `4` | Split one polygon in two: click its edge, cross it, click the edge again.               |
| **Pencil** | `Shift` + `5` | Trace freehand, as shown above.                                                         |

Turn on **Auto select** (`A`) in Vertex mode to select a polygon by hovering or clicking it without leaving the tool. **Shared edges** (`Shift` + `3`) moves the points that touching polygons share together.

## Shortcuts

Press `H` in the Workbench to see every shortcut.

| Action                                        | Keys                                        |
| --------------------------------------------- | ------------------------------------------- |
| Pan / Bounding box / Polygon / Brush / Eraser | `V` / `B` / `P` / `F` / `E`                 |
| Polyline / Keypoint / Skeleton / Cuboid       | `L` / `U` / `J` / `N`                       |
| Magic Touch / Detect all / Find similar       | `M` / `S` / `Shift` + `S`                   |
| Finish a shape / Remove last point            | `Esc` or `Enter` / `Backspace`              |
| Undo / Redo                                   | `Ctrl/Cmd` + `Z` / `Ctrl/Cmd` + `Y`         |
| Copy / Paste / Delete                         | `Ctrl/Cmd` + `C` / `Ctrl/Cmd` + `V` / `Del` |
| Select all / Merge selected                   | `Ctrl/Cmd` + `A` / `Shift` + `M`            |
| Hide or show all annotations                  | `Shift` + `V`                               |
| Zoom in / out / reset                         | `+` / `-` / `0`                             |
| Rotate left / right                           | `Shift` + `L` / `Shift` + `R`               |
| Next / previous image                         | `→` / `←`                                   |

## Check before you submit

* Every object in the image is labeled, not only the first cluster.
* Each shape matches the class: a mask where pixels matter, a box where the extent is enough.
* Touching and partly hidden objects follow the same rule throughout the project.
* Required properties are filled in.

## Related

* [Detect Anything (SAM 1–SAM 3)](https://docs.unitlab.ai/documentation/auto-labeling/detect-anything-sam-1-sam-3.md) · [Annotation Workbench](https://docs.unitlab.ai/documentation/annotations/annotation-workbench.md) · [Annotation tools](https://docs.unitlab.ai/documentation/annotations/annotation-tools.md) · [Multimodal overview](https://docs.unitlab.ai/documentation/multimodal-annotations/multimodal-overview.md)
