
虫灾检测
| 参数名 | 含义 | 数据类型 | 是否必填 | 缺省值 |
| type | 使用的数据类型,目前仅支持两种类型image|video,image:图片格式(默认) video:视频格式 | string | 否 | / |
| path | 图片格式: (1)影像外部链接方式 (2)通过系统文件上传接口,返回的图片路径 视频格式: (3)通过系统文件上传接口,返回视频的路径 | string | 是 | / |
| keyframe | 当上传视频类型时,是否返回关键帧信息;默认为true,返回关键帧信息;false,不返回关键帧信息 | boolean | 否 | / |
| 参数名 | 含义 | 规则数据 |
| code | 200 | 状态码,非200表示没有正常获取到数据 |
| data | String | 返回数据 |
| data-status | String | 状态码,非success表示没有正常获取到数据 |
| data-detail | String | 返回详情 |
请求示例
https://api.open.geovisearth.com/pj/ai-service/braindl/pdt?path=https://inf-dev.geovisearth.com/sample-uploader/7ecf2a42-2eca-4c5c-81b7-cc20b122366d/1749710621548.png&token=您的token返回示例
{
"code": 200,
"message": "success",
"data": {
"status": "success",
"detail": [
{
"predictions": [
{
"x1": 174,
"y1": 507,
"x2": 256,
"y2": 566,
"score": 0.7489877939224243,
"class_id": 0,
"class_name": "unhealthy"
},
{
"x1": 231,
"y1": 351,
"x2": 401,
"y2": 499,
"score": 0.6726718544960022,
"class_id": 0,
"class_name": "unhealthy"
},
{
"x1": 48,
"y1": 432,
"x2": 207,
"y2": 558,
"score": 0.5903061032295227,
"class_id": 0,
"class_name": "unhealthy"
},
{
"x1": 339,
"y1": 273,
"x2": 378,
"y2": 311,
"score": 0.22346246242523193,
"class_id": 0,
"class_name": "unhealthy"
}
]
}
]
}
}