Rect tool annotation schema

Schema

FieldTypeRequiredDefaultDescription
id
string
Yes-唯一标识
x
number
Yes-拉框左上角x坐标
y
number
Yes-拉框左上角y坐标
width
number
Yes-拉框宽度
height
number
Yes-拉框高度
visible
boolean
Notrue是否可见
attributes
object
No-类别属性,键值对
order
integer
Yes-标注顺序
label
string
Yes-标注类别

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"
    }
  ]
}
ON THIS PAGE