Skip to main content

<PolygonLabels>

Category: Control tag

The PolygonLabels tag is used to create labeled polygons. Use to apply labels to polygons in semantic segmentation tasks.

Use with the following data types: image.

Attributes​

AttributeTypeRequiredDefaultDescription
namestringyes—Name of tag
toNamestringyes—Name of image to label
choicesingle,multiplenosingleConfigure whether you can select one or multiple labels
maxUsagesnumberno—Maximum number of times a label can be used per task
showInlinetrue,falsenotrueShow labels in the same visual line
opacitynumberno0.2Opacity of polygon
fillColorstringno—Polygon fill color in hexadecimal
strokeColorstringno—Stroke color in hexadecimal
strokeWidthnumberno1Width of stroke
pointSizesmall,medium,largenomediumSize of polygon handle points
pointStylerectangle,circlenorectangleStyle of points
snappixel,nonenononeSnap polygon to image pixels

Examples​

Basic labeling configuration for polygonal semantic segmentation of images​

<View>
<Image name="image" value="$image" />
<PolygonLabels name="labels" toName="image">
<Label value="Car" />
<Label value="Sign" />
</PolygonLabels>
</View>