Skip to content

Latest commit

 

History

History
495 lines (492 loc) · 36 KB

polygonTool.md

File metadata and controls

495 lines (492 loc) · 36 KB

物体分割(polygonTool)

格式说明

{
  "width": 1024,
  "height": 681,
  "rotate": 0,
  "valid": true,
  "annotations": [
  {
    "toolName": "polygonTool",
    "result": [
      {
        "id": "j91grNMP",
        "pointList": [
          {
            "x": 298.4319526627219,
            "y": 155.54201183431957
          },
          {
            "x": 246.85325443786985,
            "y": 203.09112426035506
          },
          {
            "x": 248.46508875739647,
            "y": 289.3242603550296
          },
          {
            "x": 320.9976331360947,
            "y": 345.73846153846154
          }
        ],
        "valid": true,
        "label": "class-BX",
        "order": 1,
        "textAttribute": "",
      }
    ]
  }
 ] 
}

名称

类型

是否必须

默认值

备注

其他信息

result

object []

必须

item 类型: object

id

string

必须

当前id

pointList

object []

必须

多边形点集

item 类型: object

x

number

必须

点的 x 坐标

y

number

必须

点的 y 坐标

valid

boolean

必须

当前多边形有无效性

order

number

必须

当前多边形的序号

textAttribute

string

非必须

多边形的文本属性

label

string

非必须

多边形配置的属性