Skip to content

标高符号结果获取

接口地址

http
GET /result/building_cv/textelvation

请求参数

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

请求示例

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

返回结果

data 为标高符号数组,对应 List<TextElevation>

json
{
  "code": 200,
  "message": "success",
  "data": [
    {
      "elevationLines": [
        {
          "x1": 560.0,
          "y1": 920.0,
          "x2": 640.0,
          "y2": 920.0
        },
        {
          "x1": 600.0,
          "y1": 920.0,
          "x2": 600.0,
          "y2": 880.0
        }
      ],
      "trianglePoints": [
        { "x": 588.0, "y": 920.0 },
        { "x": 612.0, "y": 920.0 },
        { "x": 600.0, "y": 904.0 }
      ],
      "elevationTexts": [
        {
          "content": "+3.600",
          "leftTop": { "x": 615.0, "y": 948.0 },
          "rightTop": { "x": 678.0, "y": 948.0 },
          "rightBottom": { "x": 678.0, "y": 928.0 },
          "leftBottom": { "x": 615.0, "y": 928.0 }
        }
      ]
    }
  ],
  "timestamp": 1784538400000
}

字段说明

字段类型说明
elevationLinesArray标高符号的所有线段,每条线段包含 x1y1x2y2
trianglePointsArray标高三角形点坐标序列,每个点包含 xy
elevationTextsArray标高上方文字及其位置信息
elevationTexts[].contentString文字内容
elevationTexts[].leftTopObject文字左上角坐标
elevationTexts[].rightTopObject文字右上角坐标
elevationTexts[].rightBottomObject文字右下角坐标
elevationTexts[].leftBottomObject文字左下角坐标

响应码

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

请在任务状态为 SUCCESS 后获取结果。坐标均为 WCS 坐标。