Table of Contents

Polygon

Overview

The Polygon tool is used to create geometric annotations by drawing lines between points.

Configuring the Polygon tool

Setup steps
  1. Create a project.
  2. Select “Image editor” as your label editor.
  3. Click “Add Object” and name your object.
  4. Select “Polygon” as your labeling tool.
  5. [OPTIONAL] Configure nested classifications.
  6. Click “Confirm”.
  7. Click “Complete setup”.

Nested classifications

You can nest classifications to capture metadata for each feature. The example below demonstrates how a labeler will see a single-choice radio question nested within a polygon object.

Creating instances

From the labeling interface, a user can use the same class multiple times. For example, if a labeler sees two birds in the image and would like to assign the "bird" class to both, the user can create multiple instances of the "bird" class.

Follow these steps to create multiple instances of the same object:

  1. Select a class and draw the object.
  2. Select the same class again.
  3. Draw the next instance of the object.

Label format

Bounding box labels can be imported as an existing label or a model prediction. They can also be exported in JSON format. The x,y coordinates are listed in the order they were created.

"Label": { 
"objects": [
{
"featureId": "",
"schemaId": "",
"title": "Fish",
"value": "fish",
"color": "#FF0000",
"instanceURI": "https://api.labelbox.com/masks/cjxtj...",
"polygon": [
{ "x": 1832.93, "y": 1278.45 },
{ "x": 2101.695, "y": 1569.007 },
{ "x": 2159.806, "y": 2121.065 },
{ "x": 2021.792, "y": 2796.61 },
{ "x": 1898.305, "y": 2760.291 },
{ "x": 1941.889, "y": 2055.69 }
]
}
],
"classifications": [
{
"featureId": "",
"schemaId": "",
"title": "Does the bird have an orange beak?",
"value": "does_the_bird_have_an_orange_beak?",
"answer": {
"featureId": "",
"schemaId": "",
"title": "Yes",
"value": "yes"
}
]
}

Was this page helpful?

Bounding Box

Polyline

Contact