获取巡检抓拍图片
GET /vid_inspect/img
本接口用于获取某一个巡检抓拍任务的特定通道的抓拍图片或缩略图文件。
请求
GET https://wx.gratour.info:7200/v1/vid_inspect/img?taskId=AbctuB9sSJe8bbBzv-yr9g&chan=1
Content-Type: application/json
X-Auth-Token: HrWwReOAQ9WdLnJQ1JYivA
GET https://wx.gratour.info:7200/v1/vid_inspect/img?taskId=AbctuB9sSJe8bbBzv-yr9g&chan=1&thumb=true
Content-Type: application/json
X-Auth-Token: HrWwReOAQ9WdLnJQ1JYivA
请求参数
参数 | 数据类型 | 必要 | 说明 |
---|---|---|---|
taskId | string | Y | 任务ID |
chan | int | Y | 通道号 |
thumb | boolean | 是否取缩略图,未指定此参数时,视为 false |
应答
返回图片内容。如果图片未生成或截图失败,返回 404 HTTP 状态码