Appearance
子图框基本信息结果获取
接口地址
http
GET /result/building_cv/subFrame请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | String | 是 | 建筑构件识别任务的 taskId |
请求示例
bash
curl -G "https://openapi.bangtu-ai.com/openApi/result/building_cv/subFrame" \
-H "apiKey: YOUR_API_KEY" \
--data-urlencode "id=BUILDING_TASK_ID"返回结果
data 为子图框基本信息数组,对应 List<BaseSubFrame>。
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": null
},
{
"objId": "subframe-stair-section-001",
"subFrameName": "楼梯剖面详图",
"wcsLoc": {
"left": 2600.0,
"top": 1500.0,
"right": 4200.0,
"bottom": 100.0
},
"subFrameType": "STAIR_DETAILED_SEC",
"object": null
}
],
"timestamp": 1784538400000
}字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| objId | String | 子图框对象 ID |
| subFrameName | String | 子图框名称 |
| wcsLoc | Object | 子图框 WCS 范围,包含 left、top、right、bottom |
| subFrameType | String | 子图框类型:PLAN、FACADE、SECTION、STAIR_DETAILED_PLAN、STAIR_DETAILED_SEC 或 STAIR_DETAILED_WALL |
| object | Object | null | 该结果接口未填充构件对象,通常为 null |
响应码
| code | 说明 |
|---|---|
| 200 | 请求成功 |
| 500 | 请求失败 |