Skip to content

平面窗结果获取 ​

接口地址 ​

http
GET /result/building_cv/planWindow

请求参数 ​

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

请求示例 ​

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

返回结果 ​

data 为平面子图框数组,对应 List<BaseSubFrame>;object 为窗数组。

json
{
  "code": 200,
  "message": "success",
  "data": [
    {
      "objId": "subframe-plan-001",
      "subFrameName": "首层平面图",
      "wcsLoc": {
        "left": 100.0,
        "top": 1800.0,
        "right": 2400.0,
        "bottom": 100.0
      },
      "subFrameType": "PLAN",
      "object": [
        {
          "objId": "window-101",
          "wcsLoc": {
            "left": 430.0,
            "top": 1480.0,
            "right": 680.0,
            "bottom": 1430.0
          },
          "windowTypes": ["BAY"],
          "connectedRoomIds": ["room-101", "outside"],
          "contours": [
            { "x": 430.0, "y": 1460.0 },
            { "x": 680.0, "y": 1460.0 },
            { "x": 680.0, "y": 1440.0 },
            { "x": 430.0, "y": 1440.0 }
          ]
        },
        {
          "objId": "window-102",
          "wcsLoc": {
            "left": 720.0,
            "top": 1480.0,
            "right": 1180.0,
            "bottom": 1430.0
          },
          "windowTypes": ["CURTAIN_WALL"],
          "connectedRoomIds": ["room-102", "outside"],
          "contours": [
            { "x": 720.0, "y": 1460.0 },
            { "x": 1180.0, "y": 1460.0 },
            { "x": 1180.0, "y": 1440.0 },
            { "x": 720.0, "y": 1440.0 }
          ]
        }
      ]
    }
  ],
  "timestamp": 1784538400000
}

字段说明 ​

字段类型说明
objIdString子图框对象 ID
subFrameNameString子图框名称
wcsLocObject子图框 WCS 范围
subFrameTypeString子图框类型,平面图为 PLAN
objectArray窗数组
object[].objIdString窗对象 ID
object[].wcsLocObject窗左上右下 WCS 范围
object[].windowTypesString[]窗类型:BAY(飘窗)、CURTAIN_WALL(幕墙)或 NORMAL(普通窗)
object[].connectedRoomIdsString[]窗连通两侧空间 ID
object[].contoursArray窗洞轮廓点数组

只有飘窗和幕墙分别保留 BAY、CURTAIN_WALL 类型,其他窗类型统一为 NORMAL。

响应码 ​

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