Skip to content

平面楼梯结果获取

接口地址

http
GET /result/building_cv/planStair

请求参数

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

请求示例

bash
curl -G "https://openapi.bangtu-ai.com/openApi/result/building_cv/planStair" \
  -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": [
        {
          "wcsLoc": {
            "left": 980.0,
            "top": 1420.0,
            "right": 1320.0,
            "bottom": 920.0
          },
          "arrows": [
            {
              "arrowLine": [
                { "x": 1140.0, "y": 980.0 },
                { "x": 1140.0, "y": 1320.0 }
              ]
            }
          ],
          "breakLines": [
            { "x1": 1000.0, "y1": 1160.0, "x2": 1300.0, "y2": 1200.0 }
          ],
          "stairLines": [
            { "x1": 1000.0, "y1": 1000.0, "x2": 1300.0, "y2": 1000.0 },
            { "x1": 1000.0, "y1": 1040.0, "x2": 1300.0, "y2": 1040.0 }
          ]
        }
      ]
    }
  ],
  "timestamp": 1784538400000
}

字段说明

字段类型说明
objIdString子图框对象 ID
subFrameNameString子图框名称
wcsLocObject子图框 WCS 范围
subFrameTypeString子图框类型,平面图为 PLAN
objectArray楼梯数组
object[].wcsLocObject楼梯左上右下 WCS 范围
object[].arrowsArray梯段内箭头数组,箭头包含点坐标序列
object[].breakLinesArray梯段内剖切线数组
object[].stairLinesArray坡段线数组

响应码

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