Polylines & Points

Configuring Polyline or Point Tool

Interactive Configuration

Programmatic Configuration

  "tools": [
{
"name": "Left Eye",
"color": "#795548",
"tool": "point"
},
{
"name": "Right Eye",
"color": "#F6BF26",
"tool": "point"
},
{
"name": "Head Outline",
"color": "#009688",
"tool": "line"
}
]

Nested Classifications

Any existing classification tools can be nested within the tool to capture metadata about the label. Below is an example nesting single choice question (radio) within the point tool. This works similarly for the polyline tool.

Interactive Configuration

Programmatic Configuration

"tools": [
{
"name": "Left Eye",
"color": "#795548",
"tool": "point",
"classifications": [
{
"name": "eye_color?",
"instructions": "Eye color?",
"type": "radio",
"options": [
{
"value": "brown",
"label": "brown"
},
{
"value": "black",
"label": "black"
}
],
"required": false
}
]
},
{
"name": "Right Eye",
"color": "#F6BF26",
"tool": "point"
},
{
"name": "Head Outline",
"color": "#009688",
"tool": "line"
}
]

Label Format

The polyline or point can be imported as an existing label, an model prediction or exported in the default JSON format shown below. The coordinates are in the clockwise direction and the last coordinate isn’t the same as the first.


"Left Eye": [{
"geometry": {
"x": 130,
"y": 105
}
}],
"Right Eye": [{
"geometry": {
"x": 87,
"y": 102
}
}],
"Head Outline": [{
"geometry": [{
"x": 62,
"y": 96
}, {
"x": 62,
"y": 79
}, {
"x": 73,
"y": 41
}, {
"x": 96,
"y": 21
}, {
"x": 123,
"y": 13
}, {
"x": 152,
"y": 22
}, {
"x": 178,
"y": 51
}, {
"x": 180,
"y": 86
}, {
"x": 176,
"y": 96
}]
}]
}
Custom AttributesCustom attributes are added within the main class payload. For example, notice the presence of “what_kind_of_airplane?” within “Airplane”.


How did we do?