Skip to content

Latest commit

 

History

History
73 lines (70 loc) · 7.53 KB

polygonTool.md

File metadata and controls

73 lines (70 loc) · 7.53 KB

语义分割(polygonTool)

格式说明

{
  "width": 1024,
  "height": 681,
  "rotate": 0,
  "valid": true,
  "step_1": {
    "dataSourceStep": 0,
    "toolName": "polygonTool",
    "result": [
      {
        "sourceID": "",
        "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,
        "attribute": "class-BX",
        "order": 1,
        "textAttribute": "",
        "isRect": true
      },
      {
        "sourceID": "",
        "id": "sd21gdsP",
        "pointList": [
          {
            "x": 423.4319526627219,
            "y": 235.54201183431957
          },
          {
            "x": 332.85325443786985,
            "y": 123.09112426035506
          },
          {
            "x": 982.4650887573964,
            "y": 289.3242603550296
          },
          {
            "x": 320.9976331360947,
            "y": 345.73846153846154
          }
        ],
        "valid": true,
        "attribute": "class-3D",
        "order": 2,
        "textAttribute": ""
      }
    ]
  }
}
名称类型是否必须默认值备注其他信息
resultobject []
必须

item 类型: object

sourceIDnumber
必须
依赖框体
idstring
必须
当前id
pointListobject []
必须
多边形点集

item 类型: object

xnumber
必须
点的 x 坐标
ynumber
必须
点的 y 坐标
specialPointboolean
非必须
是否为特殊点
specialEdgeboolean
非必须
顶点与其下一个顶点连成的边是否为特殊边
validboolean
必须
当前多边形有无效性
ordernumber
必须
当前多边形的序号
textAttributestring
非必须
多边形的文本属性
attributestring
非必须
多边形配置的属性
isRectboolean
非必须
当前多边形是否通过矩形模式创建