Appearance
平面楼梯结果获取
接口地址
http
GET /result/building_cv/planStair请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | String | 是 | 建筑构件识别任务的 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
}字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| objId | String | 子图框对象 ID |
| subFrameName | String | 子图框名称 |
| wcsLoc | Object | 子图框 WCS 范围 |
| subFrameType | String | 子图框类型,平面图为 PLAN |
| object | Array | 楼梯数组 |
| object[].wcsLoc | Object | 楼梯左上右下 WCS 范围 |
| object[].arrows | Array | 梯段内箭头数组,箭头包含点坐标序列 |
| object[].breakLines | Array | 梯段内剖切线数组 |
| object[].stairLines | Array | 坡段线数组 |
响应码
| code | 说明 |
|---|---|
| 200 | 请求成功 |
| 500 | 请求失败 |