笔刷
Brush标签用于图像分割任务,您可以在图像上应用遮罩或使用画笔绘制区域。
适用于以下数据类型:图像。
参数
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| name | string |
Name of the element | |
| toName | string |
Name of the image to label | |
| [choice] | single | multiple |
single |
Configure whether the data labeler 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 |
| [smart] | boolean |
Show smart tool for interactive pre-annotations | |
| [smartOnly] | boolean |
Only show smart tool for interactive pre-annotations |
结果参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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.format | "rle" |
Format of the masks, only RLE is supported for now |
| value.rle | Array.<number> |
RLE-encoded image |
示例JSON
{
"original_width": 1920,
"original_height": 1280,
"image_rotation": 0,
"value": {
"format": "rle",
"rle": [0, 1, 1, 2, 3],
"brushlabels": ["Car"]
}
}
示例
基础图像分割标注配置:
<View>
<Brush name="brush" toName="image" />
<Labels name="labels" toName="image">
<Label value="Person" />
<Label value="Animal" />
</Labels>
<Image name="image" value="$image" />
</View>