
羊群检测
| 参数名 | 含义 | 数据类型 | 是否必填 | 缺省值 |
| 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/sheep?type=image&path=https://io-qos.geovisearth.com/getfile/15/open-platform/braindl_sheep.jpg&token=您的token返回示例
{
"code": 200,
"message": "success",
"data": {
"status": "success",
"detail": [
{
"predictions": [
{
"x1": 44,
"y1": 232,
"x2": 66,
"y2": 256,
"score": 0.8651933670043945,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 90,
"y1": 70,
"x2": 109,
"y2": 101,
"score": 0.8341631889343262,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 26,
"y1": 233,
"x2": 47,
"y2": 256,
"score": 0.8335826992988586,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 110,
"y1": 91,
"x2": 123,
"y2": 131,
"score": 0.8282322883605957,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 79,
"y1": 205,
"x2": 100,
"y2": 229,
"score": 0.8246629238128662,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 99,
"y1": 198,
"x2": 121,
"y2": 219,
"score": 0.8218456506729126,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 108,
"y1": 68,
"x2": 128,
"y2": 91,
"score": 0.8196188807487488,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 115,
"y1": 29,
"x2": 130,
"y2": 64,
"score": 0.8140318393707275,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 112,
"y1": 152,
"x2": 126,
"y2": 186,
"score": 0.812274694442749,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 97,
"y1": 47,
"x2": 118,
"y2": 69,
"score": 0.8100552558898926,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 47,
"y1": 178,
"x2": 63,
"y2": 207,
"score": 0.8085333108901978,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 139,
"y1": 117,
"x2": 152,
"y2": 155,
"score": 0.8009923100471497,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 65,
"y1": 232,
"x2": 87,
"y2": 252,
"score": 0.7957900166511536,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 29,
"y1": 189,
"x2": 44,
"y2": 220,
"score": 0.7946303486824036,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 127,
"y1": 166,
"x2": 137,
"y2": 206,
"score": 0.791546106338501,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 18,
"y1": 182,
"x2": 32,
"y2": 214,
"score": 0.7785335779190063,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 0,
"y1": 169,
"x2": 6,
"y2": 201,
"score": 0.5328656435012817,
"class_id": 0,
"class_name": "sheep"
},
{
"x1": 120,
"y1": 246,
"x2": 133,
"y2": 256,
"score": 0.242203950881958,
"class_id": 0,
"class_name": "sheep"
}
]
}
]
}
}