多边形
Polygon标签用于在不选择标签的情况下向图像添加多边形。当您只需要为多边形分配一个标签时,这非常有用。适用于图像分割任务。
适用于以下数据类型:图像。
参数
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| name | string |
Name of tag | |
| toname | string |
Name of image to label | |
| [opacity] | number |
0.6 |
Opacity of polygon |
| [fillColor] | string |
"transparent" |
Polygon fill color in hexadecimal or HTML color name |
| [strokeColor] | string |
"#f48a42" |
Stroke color in hexadecimal |
| [strokeWidth] | number |
3 |
Width of stroke |
| [pointSize] | small | medium | large |
small |
Size of polygon handle points |
| [pointStyle] | rectangle | circle |
circle |
Style of points |
| [smart] | boolean |
Show smart tool for interactive pre-annotations | |
| [smartOnly] | boolean |
Only show smart tool for interactive pre-annotations | |
| [snap] | pixel | none |
none |
Snap polygon to image pixels |
示例
多边形图像分割的基础标注配置
<View>
<Polygon name="rect-1" toName="img-1" />
<Image name="img-1" value="$img" />
</View>