关键点标签
KeyPointLabels标签用于创建带标注的关键点。适用于为识别出的关键点添加标签,例如为人脸识别标注项目中的面部特征进行标记。
适用于以下数据类型:图像。
参数
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| name | string |
Name of the element | |
| toName | string |
Name of the 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] | float |
0.9 |
Opacity of the keypoint |
| [strokeWidth] | number |
1 |
Width of the stroke |
| [snap] | pixel | none |
none |
Snap keypoint 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.x | number |
x coordinate by percentage of the image size (0-100) |
| value.y | number |
y coordinate by percentage of the image size (0-100) |
| value.width | number |
point size by percentage of the image size (0-100) |
示例JSON
{
"original_width": 1920,
"original_height": 1280,
"image_rotation": 0,
"value": {
"x": 3.1,
"y": 8.2,
"width": 2,
"keypointlabels": ["Car"]
}
}
示例
多区域基础关键点图像标注配置
<View>
<KeyPointLabels name="kp-1" toName="img-1">
<Label value="Face" />
<Label value="Nose" />
</KeyPointLabels>
<Image name="img-1" value="$img" />
</View>