星图云开放平台
地面小垃圾检测
更新时间:2025-11-20 09:29:33
接口说明

地面小垃圾检测

调用方式

使用 API 前,需要先注册账号并完成用户认证,查看 开发指南

服务地址https://api.open.geovisearth.com/pj/ai-service/braindl/waste_detect
请求方式GET 方法
接口鉴权服务密钥授权,您需要 申请 token将 token 作为必填参数拼接在服务地址中一起请求
调用限制服务调用量的限制请点击 这里 查阅
请求参数
参数名含义数据类型是否必填缺省值
type使用的数据类型,目前仅支持两种类型image|video,image:图片格式(默认)
video:视频格式
string/
path图片格式:
(1)影像外部链接方式
(2)通过系统文件上传接口,返回的图片路径
视频格式:
(3)通过系统文件上传接口,返回视频的路径
string/
keyframe当上传视频类型时,是否返回关键帧信息;默认为true,返回关键帧信息;false,不返回关键帧信息boolean/
返回参数
参数名含义规则数据
code200状态码,非200表示没有正常获取到数据
dataString返回数据
data-statusString状态码,非success表示没有正常获取到数据
data-detailString返回详情
调用示例

请求示例

https://api.open.geovisearth.com/pj/ai-service/braindl/waste_detect?type=image&path=https://io-qos.geovisearth.com/getfile/15/open-platform/braindl_waste_detect.jpg&token=您的token

返回示例

{
    "code": 200,
    "message": "success",
    "data": {
        "status": "success",
        "detail": [
            {
                "predictions": [
                    {
                        "x1": 148,
                        "y1": 94,
                        "x2": 160,
                        "y2": 110,
                        "score": 0.8052495718002319,
                        "class_id": 0,
                        "class_name": "waste"
                    },
                    {
                        "x1": 83,
                        "y1": 172,
                        "x2": 89,
                        "y2": 182,
                        "score": 0.7548041343688965,
                        "class_id": 0,
                        "class_name": "waste"
                    },
                    {
                        "x1": 151,
                        "y1": 166,
                        "x2": 159,
                        "y2": 174,
                        "score": 0.6799944043159485,
                        "class_id": 0,
                        "class_name": "waste"
                    },
                    {
                        "x1": 66,
                        "y1": 198,
                        "x2": 73,
                        "y2": 208,
                        "score": 0.5313755869865417,
                        "class_id": 0,
                        "class_name": "waste"
                    },
                    {
                        "x1": 48,
                        "y1": 226,
                        "x2": 56,
                        "y2": 238,
                        "score": 0.5144197344779968,
                        "class_id": 0,
                        "class_name": "waste"
                    },
                    {
                        "x1": 99,
                        "y1": 147,
                        "x2": 105,
                        "y2": 157,
                        "score": 0.48766863346099854,
                        "class_id": 0,
                        "class_name": "waste"
                    },
                    {
                        "x1": 105,
                        "y1": 8,
                        "x2": 110,
                        "y2": 17,
                        "score": 0.43141821026802063,
                        "class_id": 0,
                        "class_name": "waste"
                    },
                    {
                        "x1": 113,
                        "y1": 123,
                        "x2": 119,
                        "y2": 132,
                        "score": 0.3701653480529785,
                        "class_id": 0,
                        "class_name": "waste"
                    }
                ]
            }
        ]
    }
}