星图云开放平台
钢筋计数
更新时间:2025-11-20 09:29:28
接口说明

钢筋计数

调用方式

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

服务地址https://api.open.geovisearth.com/pj/ai-service/braindl/reinforcing_steel_bar
请求方式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/helmet?type=image&path=https://io-qos.geovisearth.com/getfile/15/open-platform/braindl_reinforcing_steel_bar.jpg&token=您的token

返回示例

{
    "code": 200,
    "message": "success",
    "data": {
        "status": "success",
        "detail": [
            {
                "predictions": [
                    {
                        "x1": 122,
                        "y1": 126,
                        "x2": 134,
                        "y2": 141,
                        "score": 0.8130291700363159,
                        "class_id": 0,
                        "class_name": "rebar"
                    },
                    {
                        "x1": 113,
                        "y1": 93,
                        "x2": 126,
                        "y2": 108,
                        "score": 0.6924012899398804,
                        "class_id": 0,
                        "class_name": "rebar"
                    },
                    {
                        "x1": 92,
                        "y1": 90,
                        "x2": 106,
                        "y2": 105,
                        "score": 0.6083834171295166,
                        "class_id": 0,
                        "class_name": "rebar"
                    },
                    {
                        "x1": 86,
                        "y1": 136,
                        "x2": 98,
                        "y2": 151,
                        "score": 0.5909308791160583,
                        "class_id": 0,
                        "class_name": "rebar"
                    },
                    {
                        "x1": 162,
                        "y1": 107,
                        "x2": 174,
                        "y2": 121,
                        "score": 0.40010207891464233,
                        "class_id": 0,
                        "class_name": "rebar"
                    },
                    {
                        "x1": 86,
                        "y1": 112,
                        "x2": 97,
                        "y2": 124,
                        "score": 0.3338733911514282,
                        "class_id": 0,
                        "class_name": "rebar"
                    },
                    {
                        "x1": 189,
                        "y1": 110,
                        "x2": 202,
                        "y2": 125,
                        "score": 0.2903978228569031,
                        "class_id": 0,
                        "class_name": "rebar"
                    },
                    {
                        "x1": 216,
                        "y1": 111,
                        "x2": 229,
                        "y2": 126,
                        "score": 0.2533606290817261,
                        "class_id": 0,
                        "class_name": "rebar"
                    },
                    {
                        "x1": 204,
                        "y1": 112,
                        "x2": 215,
                        "y2": 127,
                        "score": 0.21420568227767944,
                        "class_id": 0,
                        "class_name": "rebar"
                    },
                    {
                        "x1": 95,
                        "y1": 104,
                        "x2": 107,
                        "y2": 117,
                        "score": 0.20644313097000122,
                        "class_id": 0,
                        "class_name": "rebar"
                    }
                ]
            }
        ]
    }
}