Overview of the Segmentation labeling tool in Ango Hub

The Segmentation labeling tool allows you to segment images and create complex polygons with holes, with support for merging and subtracting polygons from one another.

How to add a Segmentation tool to your project

From the project’s Settings tab, enter the Label Set section.

Click on Add Category. From the list that appears, click on Segmentation.

A new row will appear named Segmentation. Click on it to expand it.

Give your segmentation tool a title and description.

Enable the Required toggle if you want to force labelers to create a segmentation for each asset. When the toggle is disabled, labelers will be able to save and move to the next asset without creating the segmentation.

If you would like to ask labelers further questions, for example, if you want to show a further radio after drawing the segmentation, click on Add Classification and add a further question. More on nested questions here.

Using the Segmentation Tool

Click on a segmentation tool from the tools section on the left of the screen.

Click on the image where you’d like the segmentation to start. Click again somewhere else to create a new point, and so on:

To create a fine-grained segmentation, keep the left mouse button (LMB) pressed to draw your segmentation:

When you are done with your segmentation, press N to close and finalize it, or click on the initial point as shown in the video above.

Cutting Out From / Creating a Hole in a Segmentation

Click on a segmentation on the image, then press on the "scissors" icon that appears. This will switch to "delete" mode. In delete mode, you can create segmentations the contents of which will be removed from any segmentation present on the image at the moment:

Merging Segmentations

Select two segmentations belonging to the same class by shift-clicking them. The "merge" button will become active. Clicking it will merge the two segmentations. If they overlap, then they will then behave as one single segmentation, which you are able to adjust:

You can also merge segmentations not overlapping. In that case, while they will not behave as one segmentation, they will be semantically grouped together in one instance, and in the export they'll be shown as a single 'object':

Subtracting Segmentations

By default, you can draw a segmentation over another, and they will overlap without subtracting one another.

If you have overlapping segmentations, Hub allows you make it so that one "cuts" into the other, such that the segmentation found below is cut (subtracted) by the one above, having no overlap in the end.

To do so, select two segmentations, by shift-clicking on them directly, or by shift-clicking on their list item in the Objects panel. The first segmentation you choose will be the one that will have no data removed. The segmentation chosen second will have part of it subtracted. Then, click on Subtract. You can see it in action here:

If you can't click on a segmentation because it is obstructed by another one on top, you can:

  • Click on its row in the Objects list instead, or

Nudging Segmentations

You can apply small changes to your segmentations by 'nudging' them.

To nudge a segmentation, click on the segmentation on the asset, then pick the type of nudge tool you'd like to use:

Nudge Erase will allow you to reduce the size of your segmentation while applying small changes. Nudge Draw will add area to your segmentation.

Once you have picked your nudging tool of choice by clicking on either the "plus" or the "minus", click and drag around the segmentation's edge to refine the edge of your segmentation:

Last updated