星图云开放平台
水面垃圾识别
更新时间:2025-11-20 09:29:10
接口说明

水面垃圾识别

调用方式

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

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

请求示例

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

返回示例

{
    "code": 200,
    "message": "success",
    "data": {
        "status": "success",
        "detail": [
            {
                "predictions": [
                    {
                        "x1": 166,
                        "y1": 169,
                        "x2": 184,
                        "y2": 187,
                        "score": 0.9466977119445801,
                        "class_id": 4,
                        "class_name": "塑料漂浮物"
                    },
                    {
                        "x1": 166,
                        "y1": 169,
                        "x2": 184,
                        "y2": 187,
                        "score": 0.9207481741905212,
                        "class_id": 10,
                        "class_name": "聚苯乙烯泡沫塑料_碎片"
                    },
                    {
                        "x1": 166,
                        "y1": 169,
                        "x2": 183,
                        "y2": 186,
                        "score": 0.891909122467041,
                        "class_id": 6,
                        "class_name": "塑料_ETC"
                    },
                    {
                        "x1": 123,
                        "y1": 143,
                        "x2": 138,
                        "y2": 158,
                        "score": 0.7388503551483154,
                        "class_id": 4,
                        "class_name": "塑料漂浮物"
                    },
                    {
                        "x1": 131,
                        "y1": 128,
                        "x2": 147,
                        "y2": 138,
                        "score": 0.4576626420021057,
                        "class_id": 3,
                        "class_name": "PET瓶"
                    },
                    {
                        "x1": 95,
                        "y1": 13,
                        "x2": 106,
                        "y2": 20,
                        "score": 0.23052316904067993,
                        "class_id": 4,
                        "class_name": "塑料漂浮物"
                    },
                    {
                        "x1": 31,
                        "y1": 223,
                        "x2": 38,
                        "y2": 231,
                        "score": 0.20733028650283813,
                        "class_id": 10,
                        "class_name": "聚苯乙烯泡沫塑料_碎片"
                    }
                ]
            }
        ]
    }
}