多边形标注
PolygonLabels标签用于创建带标注的多边形。适用于在语义分割任务中对多边形进行标注。
适用于以下数据类型:图像。
参数
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| name | string |
Name of tag | |
| toName | string |
Name of image to label | |
| [choice] | single | multiple |
single |
Configure whether you can select one or multiple labels |
| [maxUsages] | number |
Maximum number of times a label can be used per task | |
| [showInline] | boolean |
true |
Show labels in the same visual line |
| [opacity] | number |
0.2 |
Opacity of polygon |
| [fillColor] | string |
Polygon fill color in hexadecimal | |
| [strokeColor] | string |
Stroke color in hexadecimal | |
| [strokeWidth] | number |
1 |
Width of stroke |
| [pointSize] | small | medium | large |
medium |
Size of polygon handle points |
| [pointStyle] | rectangle | circle |
rectangle |
Style of points |
| [snap] | pixel | none |
none |
Snap polygon to image pixels |
结果参数
| 名称 | 类型 | 描述 |
|---|---|---|
| original_width | number |
width of the original image (px) |
| original_height | number |
height of the original image (px) |
| image_rotation | number |
rotation degree of the image (deg) |
| value | Object |
|
| value.points | Array.<Array.<number>> |
list of (x, y) coordinates of the polygon by percentage of the image size (0-100) |
示例JSON
{
"original_width": 1920,
"original_height": 1280,
"image_rotation": 0,
"value": {
"points": [[2, 2], [3.5, 8.1], [3.5, 12.6]],
"polygonlabels": ["Car"]
}
}
示例
图像多边形语义分割的基础标注配置
<View>
<Image name="image" value="$image" />
<PolygonLabels name="labels" toName="image">
<Label value="Car" />
<Label value="Sign" />
</PolygonLabels>
</View>