Instance Segmentation (Polygon)
Use Polygon labels for Semantic & Instance Segmentation

Overview

Polygons enable semantic and instance segmentation.
Architectures such as FCN and Mask R-CNN support polygons (or pixel masks) as input. Common use cases include visually segmenting the road, pedestrians, and cars for automated vehicles.
Pixels categorized for person, bike, and road.

Create a Polygon Label

    1.
    Navigate to the "Label Definitions" sub-tab of your project
    2.
    Type label name in the "Label Name" field
    3.
    Choose Polygon from the "Label Type" drop-down
    4.
    Select label color from the color chooser menu
    5.
    Optionally configure AutoLabel if desired
    6.
    Click "Save" button
    7.
    Repeat as needed for multiple labels
Now that you've added a Polygon label, you can use it to label an image:
Polygon label types also support Sublabels:

Data Format

A Polygon schema element creates an array of objects with data consisting of an array of vertices. Each vertex is a XY coordinate relative (0.0 to 1.0) to width and height respectively. The last point is repeated indicating the Polygon is closed.
1
[
2
0:{
3
"type":"polygon"
4
"data":{
5
"points":[
6
0:[
7
0:0.55
8
1:0.58
9
]
10
1:[
11
0:0.79
12
1:0.72
13
]
14
2:[
15
0:0.58
16
1:0.92
17
]
18
3:[
19
0:0.33
20
1:0.71
21
]
22
4:[
23
0:0.55
24
1:0.58
25
]
26
]
27
}
28
}
29
]
Copied!

Last modified 2mo ago