Appearance
标尺线结果获取
接口地址
http
GET /result/building_cv/alignedDims请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | String | 是 | 建筑构件识别任务的 taskId |
请求示例
bash
curl -G "https://openapi.bangtu-ai.com/openApi/result/building_cv/alignedDims" \
-H "apiKey: YOUR_API_KEY" \
--data-urlencode "id=BUILDING_TASK_ID"返回结果
data 为标尺线数组,对应 List<AlignedDim>。
json
{
"code": 200,
"message": "success",
"data": [
{
"xLine1Point": {
"x": 420.0,
"y": 860.0
},
"xLine2Point": {
"x": 1020.0,
"y": 860.0
},
"dimLinePoint": {
"x": 420.0,
"y": 920.0
},
"value": 6000.0,
"text": "6000"
}
],
"timestamp": 1784538400000
}字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| xLine1Point | Object | 标尺线第一个测量对象点,包含 x、y |
| xLine2Point | Object | 标尺线第二个测量对象点 |
| dimLinePoint | Object | 标尺线测量线点 |
| value | Number | 标尺线测量值,即模型内 WCS 长度 |
| text | String | 标尺线标注文字 |
响应码
| code | 说明 |
|---|---|
| 200 | 请求成功 |
| 500 | 请求失败 |