Appearance
索引号结果获取
接口地址
http
GET /result/building_cv/indexNumber请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | String | 是 | 建筑构件识别任务的 taskId |
请求示例
bash
curl -G "https://openapi.bangtu-ai.com/openApi/result/building_cv/indexNumber" \
-H "apiKey: YOUR_API_KEY" \
--data-urlencode "id=BUILDING_TASK_ID"返回结果
data 为索引号数组,对应 List<IndexNumber>。
json
{
"code": 200,
"message": "success",
"data": [
{
"indexNumberCircleInfo": [
{
"indexCircleCenter": {
"x": 1260.5,
"y": 845.2
},
"indexCircleRadius": 12.0,
"circleAboveText": ["1"],
"circleBelowText": ["A"]
}
],
"indexNumberLines": [
{
"x1": 1260.5,
"y1": 833.2,
"x2": 1260.5,
"y2": 790.0
},
{
"x1": 1260.5,
"y1": 790.0,
"x2": 1325.0,
"y2": 790.0
}
],
"lineTextInfo": [
{
"content": "详图索引 1/A",
"lineTexts": {
"left": 1328.0,
"top": 802.0,
"right": 1416.0,
"bottom": 786.0
}
}
]
}
],
"timestamp": 1784538400000
}字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| indexNumberCircleInfo | Array | 索引号圆基础信息 |
| indexNumberCircleInfo[].indexCircleCenter | Object | 圆心坐标,包含 x、y |
| indexNumberCircleInfo[].indexCircleRadius | Number | 索引号圆半径 |
| indexNumberCircleInfo[].circleAboveText | String[] | 圆内上方文字 |
| indexNumberCircleInfo[].circleBelowText | String[] | 圆内下方文字 |
| indexNumberLines | Array | 索引号全部线段,线段包含 x1、y1、x2、y2 |
| lineTextInfo | Array | 索引号引线对应文字 |
| lineTextInfo[].content | String | 引线文字内容 |
| lineTextInfo[].lineTexts | Object | 文字位置范围,包含 left、top、right、bottom |
响应码
| code | 说明 |
|---|---|
| 200 | 请求成功 |
| 500 | 请求失败 |
请先确认建筑构件识别任务状态为
SUCCESS,再获取结果。结果不存在时data可能为空数组或null。