Appearance
剖面楼层结果获取
接口地址
http
GET /result/building_cv/sectionStorey请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | String | 是 | 建筑构件识别任务的 taskId |
请求示例
bash
curl -G "https://openapi.bangtu-ai.com/openApi/result/building_cv/sectionStorey" \
-H "apiKey: YOUR_API_KEY" \
--data-urlencode "id=BUILDING_TASK_ID"返回结果
data 为剖面子图框数组,对应 List<BaseSubFrame>;object 按顺序包含左侧楼层和右侧楼层两组数组。
json
{
"code": 200,
"message": "success",
"data": [
{
"objId": "subframe-section-001",
"subFrameName": "1-1 剖面图",
"wcsLoc": { "left": 100.0, "top": 1800.0, "right": 2400.0, "bottom": 100.0 },
"subFrameType": "SECTION",
"object": [
[
{
"objId": "section-storey-left-01",
"wcsLoc": { "left": 240.0, "top": 620.0, "right": 1160.0, "bottom": 300.0 },
"storeyNum": 1,
"storeyHeight": 3200.0,
"storeyLowerElev": 0.0,
"storeyUpperElev": 3200.0
}
],
[
{
"objId": "section-storey-right-01",
"wcsLoc": { "left": 1240.0, "top": 620.0, "right": 2160.0, "bottom": 300.0 },
"storeyNum": 1,
"storeyHeight": 3200.0,
"storeyLowerElev": 0.0,
"storeyUpperElev": 3200.0
}
]
]
}
],
"timestamp": 1784538400000
}字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| objId | String | 子图框对象 ID |
| subFrameName | String | 子图框名称 |
| wcsLoc | Object | 子图框 WCS 范围 |
| subFrameType | String | 子图框类型,剖面图为 SECTION |
| object[0] | Array | 左侧剖面楼层对象数组 |
| object[1] | Array | 右侧剖面楼层对象数组 |
| object[][].objId | String | 楼层对象 ID |
| object[][].wcsLoc | Object | 楼层 WCS 范围 |
| object[][].storeyNum | Number | 楼层编号 |
| object[][].storeyHeight | Number | 楼层高度 |
| object[][].storeyLowerElev | Number | 楼层下标高 |
| object[][].storeyUpperElev | Number | 楼层上标高 |
响应码
| code | 说明 |
|---|---|
| 200 | 请求成功 |
| 500 | 请求失败 |