文档中心 > API类目 > 天眼工作室API

alibaba.security.deepvision.proxy.algorithm.person.detectmultiperson (算法服务-快照多人检测(京东方教学屏))

算法服务-快照多人检测(京东方教学屏)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param MultiPersonDetectParam 可选 参数
  • └ image
  • String
  • 必须
  • 1
  • 图片地址
  • └ request_id
  • String
  • 可选
  • 1
  • 请求唯一ID
  • └ api_sign
  • String
  • 可选
  • 1
  • 参数签名
  • └ tenant_code
  • String
  • 必须
  • 1
  • 租户
  • └ max_num
  • Number
  • 可选
  • 1
  • 最大人数
  • └ detect_types
  • String []
  • 必须
  • []
  • 检测类型
  • └ version
  • String
  • 可选
  • 1
  • 版本
  • └ timestamp
  • Number
  • 可选
  • 1
  • 时间戳
  • └ detect_actions
  • String []
  • 可选
  • ["1"]
  • 检测动作

响应参数

名称 类型 示例值 描述
result Datas [] 列表
  • head
  • HeadVO
  • rect
  • RectVO
  • 矩形框
  • └ top
  • Number
  • 1
  • top
  • └ left
  • Number
  • 1
  • left
  • └ width
  • Number
  • 1
  • width
  • └ height
  • Number
  • 1
  • height
  • └ prob
  • String
  • 0.4
  • 矩形框置信度
  • face
  • FaceVO
  • rect
  • RectVO
  • 矩形框
  • └ top
  • Number
  • 1
  • top
  • └ left
  • Number
  • 1
  • left
  • └ width
  • Number
  • 1
  • width
  • └ height
  • Number
  • 1
  • height
  • └ prob
  • String
  • 0.4
  • 矩形框置信度
  • body
  • BodyVO
  • 身体
  • rect
  • RectVO
  • 矩形框
  • └ top
  • Number
  • 1
  • top
  • └ left
  • Number
  • 1
  • left
  • └ width
  • Number
  • 1
  • width
  • └ height
  • Number
  • 1
  • height
  • └ prob
  • String
  • 0.4
  • 矩形框置信度
  • └ score
  • String
  • 0.5
  • 质量分
  • └ feature
  • Number []
  • 特征向量
  • └ landmark
  • Number []
  • 关键点
  • └ landmark_score
  • Number []
  • 关键点置信度
  • actions
  • Datas []
  • 行为列表
  • └ type
  • String
  • 1
  • 类型
  • └ action
  • String
  • 1
  • 行为
  • └ prob
  • String
  • 1
  • 置信度
resp_code Number 1 返回码
resp_success Boolean true 是否成功
resp_request_id String 1 请求唯一ID
message String 成功 返回描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionProxyAlgorithmPersonDetectmultipersonRequest req = new AlibabaSecurityDeepvisionProxyAlgorithmPersonDetectmultipersonRequest();
AlibabaSecurityDeepvisionProxyAlgorithmPersonDetectmultipersonRequest.MultiPersonDetectParam obj1 = new AlibabaSecurityDeepvisionProxyAlgorithmPersonDetectmultipersonRequest.MultiPersonDetectParam();
obj1.setImage("1");
obj1.setRequestId("1");
obj1.setApiSign("1");
obj1.setTenantCode("1");
obj1.setMaxNum(1L);
obj1.setDetectTypes("");
obj1.setVersion("1");
obj1.setTimestamp(1L);
obj1.setDetectActions(""1"");
req.setParam(obj1);
AlibabaSecurityDeepvisionProxyAlgorithmPersonDetectmultipersonResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_deepvision_proxy_algorithm_person_detectmultiperson_response>
    <result>
        <datas>
            <head>
                <rect>
                    <top>1</top>
                    <left>1</left>
                    <width>1</width>
                    <height>1</height>
                </rect>
                <prob>0.4</prob>
            </head>
            <face>
                <rect>
                    <top>1</top>
                    <left>1</left>
                    <width>1</width>
                    <height>1</height>
                </rect>
                <prob>0.4</prob>
            </face>
            <body>
                <rect>
                    <top>1</top>
                    <left>1</left>
                    <width>1</width>
                    <height>1</height>
                </rect>
                <prob>0.4</prob>
                <score>0.5</score>
            </body>
            <actions>
                <datas>
                    <type>1</type>
                    <action>1</action>
                    <prob>1</prob>
                </datas>
            </actions>
        </datas>
    </result>
    <resp_code>1</resp_code>
    <resp_success>true</resp_success>
    <resp_request_id>1</resp_request_id>
    <message>成功</message>
</alibaba_security_deepvision_proxy_algorithm_person_detectmultiperson_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部