Skip to content

墙身节点轮廓结果获取

接口地址

http
GET /result/building_cv/wallDetContour

请求参数

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

请求示例

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

返回结果

data 为墙身详图子图框数组,对应 List<BaseSubFrame>object 按顺序包含墙体轮廓、栏杆范围和窗范围三组数组。

json
{
  "code": 200,
  "message": "success",
  "data": [
    {
      "objId": "subframe-wall-detail-001",
      "subFrameName": "外墙墙身节点详图",
      "wcsLoc": { "left": 100.0, "top": 1600.0, "right": 1400.0, "bottom": 100.0 },
      "subFrameType": "STAIR_DETAILED_WALL",
      "object": [
        [
          [
            { "x": 260.0, "y": 1420.0 },
            { "x": 520.0, "y": 1420.0 },
            { "x": 520.0, "y": 220.0 },
            { "x": 260.0, "y": 220.0 }
          ]
        ],
        [
          {
            "left": 560.0,
            "top": 1080.0,
            "right": 920.0,
            "bottom": 1020.0
          }
        ],
        [
          {
            "left": 300.0,
            "top": 920.0,
            "right": 500.0,
            "bottom": 620.0
          }
        ]
      ]
    }
  ],
  "timestamp": 1784538400000
}

字段说明

字段类型说明
objIdString子图框对象 ID
subFrameNameString子图框名称
wcsLocObject子图框 WCS 范围
subFrameTypeString墙身详图类型为 STAIR_DETAILED_WALL
object[0]Array[]墙体轮廓点数组
object[1]Array栏杆 WCS 范围数组
object[2]Array窗 WCS 范围数组
object[1][].left/top/right/bottomNumber栏杆范围边界
object[2][].left/top/right/bottomNumber窗范围边界

仅处理 subdetailed_typeCVSUBDETAILEDTYPE_WALLDET 的墙身详图。

响应码

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