Appearance
墙身节点轮廓结果获取
接口地址
http
GET /result/building_cv/wallDetContour请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | String | 是 | 建筑构件识别任务的 taskId |
请求示例
bash
curl -G "https://openapi.bangtu-ai.com/openApi/result/building_cv/wallDetContour" \
-H "apiKey: YOUR_API_KEY" \
--data-urlencode "id=BUILDING_TASK_ID"返回结果
data 为墙身详图子图框数组,对应 List<BaseSubFrame>;object 按顺序包含墙体轮廓、栏杆范围和窗范围三组数组。
json
{
"code": 200,
"message": "success",
"data": [
{
"objId": "subframe-wall-detail-001",
"subFrameName": "外墙墙身节点详图",
"wcsLoc": { "left": 100.0, "top": 1600.0, "right": 1400.0, "bottom": 100.0 },
"subFrameType": "STAIR_DETAILED_WALL",
"object": [
[
[
{ "x": 260.0, "y": 1420.0 },
{ "x": 520.0, "y": 1420.0 },
{ "x": 520.0, "y": 220.0 },
{ "x": 260.0, "y": 220.0 }
]
],
[
{
"left": 560.0,
"top": 1080.0,
"right": 920.0,
"bottom": 1020.0
}
],
[
{
"left": 300.0,
"top": 920.0,
"right": 500.0,
"bottom": 620.0
}
]
]
}
],
"timestamp": 1784538400000
}字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| objId | String | 子图框对象 ID |
| subFrameName | String | 子图框名称 |
| wcsLoc | Object | 子图框 WCS 范围 |
| subFrameType | String | 墙身详图类型为 STAIR_DETAILED_WALL |
| object[0] | Array[] | 墙体轮廓点数组 |
| object[1] | Array | 栏杆 WCS 范围数组 |
| object[2] | Array | 窗 WCS 范围数组 |
| object[1][].left/top/right/bottom | Number | 栏杆范围边界 |
| object[2][].left/top/right/bottom | Number | 窗范围边界 |
仅处理
subdetailed_type为CVSUBDETAILEDTYPE_WALLDET的墙身详图。
响应码
| code | 说明 |
|---|---|
| 200 | 请求成功 |
| 500 | 请求失败 |