Rect tool annotation schema

Schema

字段类型必填默认值描述
id
string
-唯一标识
x
number
-拉框左上角x坐标
y
number
-拉框左上角y坐标
width
number
-拉框宽度
height
number
-拉框高度
visible
boolean
true是否可见
attributes
object
-类别属性,键值对
order
integer
-标注顺序
label
string
-标注类别

Example

{
  "toolName": "rectTool",
  "result": [
    {
      "x": 148.66463414634154,
      "y": 594.4123475609755,
      "width": 168.1326219512195,
      "height": 134.5060975609756,
      "visible": true,
      "id": "0kjFS5rI",
      "order": 4,
      "label": "label-1"
    }
  ]
}