{% hint style="info" %}
When creating a dataset through the Python SDK, choose segmentation-bitmap
as the task_type
to use this labeling interface.
{% endhint %}
{% hint style="info" %} The image segmentation interface is a bitmap interface: the resulting label is an image containing object segmentation masks. If you need vector labels containing polygon, polyline, bounding box or keypoint coordinates, use the image vector interface instead. {% endhint %}
{% embed url="https://www.youtube.com/watch?v=Y1JOCxXQLMg" %}
To add a new object:
- Select a drawing tool (see #drawing-tools)
- Label the object by drawing on the image
- Press
Space
to confirm the object once you finished labeling
- Press
Space
orEscape
or click the button in the left toolbar to enter view-and-select mode - Click on a labeled object to select it. You can also select an object by selecting it in the right sidebar
Select an object and press Backspace
to remove it. You can also click the icon in the sidebar to remove an object.
Select an object and click on its name in the sidebar to select a different category. You can also use hotkey c
to change the category of the active object.
{% hint style="info" %} You can switch seamlessly between drawing tools while labeling {% endhint %}
- Click the button in the left toolbar or press
b
to select the brush tool - Change the brush size by adjusting the slider in the top left of the screen, or by scrolling your mouse wheel
- Click and drag on the image to draw
- Click the button in the left toolbar or press
p
to select the polygon tool - Click on the image to draw polygon points. You can also click and drag to draw free-form lines
- Double click or click the first point of the polygon to finish it. The region within the polygon will now be annotated
- Click thebutton in the left toolbar or press s to select the superpixel tool
- Change the superpixel granularity by adjusting the slider in the top left of the screen, or by scrolling your mouse wheel
- Click on a superpixel to select the corresponding region, or drag across multiple superpixels to select more than one at a time
- Click a superpixel again to unselect the region
More info in this blog post.
- Click thebutton in the left toolbar or press
a
to select the autosegment tool - Draw a box around an object in the image through click and drag
- The object within the box will be automatically segmented
More info in this blog post.
- Click thebutton in the left toolbar or press
d
to select the hover-and-click tool - Hover with your mouse over the image to see mask suggestions appear
- Click to select a suggested mask
More info in this blog post.
- The object within the box will be automatically segmented
When labeling in brush, polygon or autosegment mode, an eraser button will appear in the left toolbar. Click it or hold hotkey e
to enable the erase mode.
Click thebutton in the left toolbar or press hotkey r
to toggle the lock mode. When lock mode is enabled, existing objects will not be affected when drawing over them.