Cuboid tool annotation schema

Schema

字段类型必填默认值描述
id
string
-唯一标识
direction
string
front正面方向: front(前面),back(后面),left(左侧面),right(右侧面)
front
object
-正面四个点坐标
back
object
-背面四个点坐标
visible
boolean
true是否可见
attributes
object
-类别属性,键值对
order
integer
-标注顺序
label
string
-标注类别

Example

{
  "toolName": "cuboidTool",
  "result": [
    {
      "id": "026815a5-6149-46b2-acaf-3f72f02bac1c",
      "direction": "front",
      "front": {
        "tl": {
          "x": 1462.8745754642832,
          "y": 629.9911885609806
        },
        "tr": {
          "x": 1515.2846582265065,
          "y": 629.9911885609806
        },
        "br": {
          "x": 1515.2846582265065,
          "y": 673.1464092563549
        },
        "bl": {
          "x": 1462.8745754642832,
          "y": 673.1464092563549
        }
      },
      "back": {
        "tl": {
          "x": 1474.6371715130847,
          "y": 630.3624051292308
        },
        "tr": {
          "x": 1524.6376574369958,
          "y": 630.3624051292308
        },
        "br": {
          "x": 1524.6376574369958,
          "y": 671.5335289130235
        },
        "bl": {
          "x": 1474.6371715130847,
          "y": 671.5335289130235
        }
      },
      "order": 2,
      "attributes": {},
      "attribute": "car"
    }
  ]
}