Appearance
箭头结果获取
接口地址
http
GET /result/building_cv/arrows请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | String | 是 | 建筑构件识别任务的 taskId |
请求示例
bash
curl -G "https://openapi.bangtu-ai.com/openApi/result/building_cv/arrows" \
-H "apiKey: YOUR_API_KEY" \
--data-urlencode "id=BUILDING_TASK_ID"返回结果
data 为箭头数组,对应 List<Arrow>。
json
{
"code": 200,
"message": "success",
"data": [
{
"arrowLine": [
{ "x": 420.0, "y": 680.0 },
{ "x": 510.0, "y": 680.0 },
{ "x": 548.0, "y": 718.0 }
]
}
],
"timestamp": 1784538400000
}字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| arrowLine | Array | 箭头点坐标序列,从末端点开始记录到头部 |
| arrowLine[].x | Number | 点的 X 坐标 |
| arrowLine[].y | Number | 点的 Y 坐标 |
响应码
| code | 说明 |
|---|---|
| 200 | 请求成功 |
| 500 | 请求失败 |
请在任务状态为
SUCCESS后获取结果。坐标均为 WCS 坐标。