Skip to content

索引号结果获取

接口地址

http
GET /result/building_cv/indexNumber

请求参数

参数类型必填说明
idString建筑构件识别任务的 taskId

请求示例

bash
curl -G "https://openapi.bangtu-ai.com/openApi/result/building_cv/indexNumber" \
  -H "apiKey:  YOUR_API_KEY" \
  --data-urlencode "id=BUILDING_TASK_ID"

返回结果

data 为索引号数组,对应 List<IndexNumber>

json
{
  "code": 200,
  "message": "success",
  "data": [
    {
      "indexNumberCircleInfo": [
        {
          "indexCircleCenter": {
            "x": 1260.5,
            "y": 845.2
          },
          "indexCircleRadius": 12.0,
          "circleAboveText": ["1"],
          "circleBelowText": ["A"]
        }
      ],
      "indexNumberLines": [
        {
          "x1": 1260.5,
          "y1": 833.2,
          "x2": 1260.5,
          "y2": 790.0
        },
        {
          "x1": 1260.5,
          "y1": 790.0,
          "x2": 1325.0,
          "y2": 790.0
        }
      ],
      "lineTextInfo": [
        {
          "content": "详图索引 1/A",
          "lineTexts": {
            "left": 1328.0,
            "top": 802.0,
            "right": 1416.0,
            "bottom": 786.0
          }
        }
      ]
    }
  ],
  "timestamp": 1784538400000
}

字段说明

字段类型说明
indexNumberCircleInfoArray索引号圆基础信息
indexNumberCircleInfo[].indexCircleCenterObject圆心坐标,包含 xy
indexNumberCircleInfo[].indexCircleRadiusNumber索引号圆半径
indexNumberCircleInfo[].circleAboveTextString[]圆内上方文字
indexNumberCircleInfo[].circleBelowTextString[]圆内下方文字
indexNumberLinesArray索引号全部线段,线段包含 x1y1x2y2
lineTextInfoArray索引号引线对应文字
lineTextInfo[].contentString引线文字内容
lineTextInfo[].lineTextsObject文字位置范围,包含 lefttoprightbottom

响应码

code说明
200请求成功
500请求失败

请先确认建筑构件识别任务状态为 SUCCESS,再获取结果。结果不存在时 data 可能为空数组或 null