Skip to content

箭头结果获取

接口地址

http
GET /result/building_cv/arrows

请求参数

参数类型必填说明
idString建筑构件识别任务的 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
}

字段说明

字段类型说明
arrowLineArray箭头点坐标序列,从末端点开始记录到头部
arrowLine[].xNumber点的 X 坐标
arrowLine[].yNumber点的 Y 坐标

响应码

code说明
200请求成功
500请求失败

请在任务状态为 SUCCESS 后获取结果。坐标均为 WCS 坐标。