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

alibaba.security.deepvision.proxy.smartmonitor.session.getlist (多行人会话查询)

多行人会话查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param PedestrianSessionSearchParam 可选 参数
  • └ xid
  • String
  • 可选
  • 121212
  • xid
  • └ camera_id
  • String
  • 可选
  • 12121
  • sensorId
  • └ payer_id
  • String
  • 可选
  • 12121
  • 支付ID
  • └ api_sign
  • String
  • 可选
  • 12121
  • 参数签名
  • └ start_time
  • Number
  • 可选
  • 12121
  • 开始时间
  • └ end_time
  • Number
  • 可选
  • 12121
  • 结束时间
  • └ tenant_code
  • String
  • 必须
  • 12121
  • 租户编码
  • items
  • FeatureSearchItem []
  • 可选
  • 对象
  • 检索信息
  • └ image
  • String
  • 可选
  • 12121
  • 图片
  • └ threshold
  • String
  • 可选
  • 0.2
  • 检索阈值
  • └ type
  • String
  • 可选
  • 12121
  • 图片类型
  • └ top_n
  • Number
  • 可选
  • 10
  • topN
  • └ poi_id
  • String
  • 必须
  • xxxx
  • 门店
  • └ member_id
  • String
  • 可选
  • 12121
  • 会员ID
  • └ token
  • String
  • 可选
  • 12121
  • Token
  • └ request_id
  • String
  • 可选
  • 1111
  • 请求唯一ID

响应参数

名称 类型 示例值 描述
result Datas [] 结果
  • └ session_id
  • String
  • 1
  • 会话ID
  • └ best_face_oss
  • String
  • 1111
  • 最佳人脸在OSS的地址
  • └ best_face_url
  • String
  • 1111
  • 最佳人脸临时访问地址
  • └ best_body_oss
  • String
  • 1111
  • 最佳人体在OSS的地址
  • └ best_body_url
  • String
  • 1111
  • 最佳人体临时访问地址
  • └ enter_field
  • Number
  • 1111
  • 进场时间
  • └ exit_field
  • Number
  • 1111
  • 出场时间
  • └ similar_score
  • String
  • 0.3
  • 相似分
  • └ order_ids
  • String []
  • 关联订单
resp_success Boolean true 是否成功
resp_code Number 1 返回码
message String 成功 返回描述
resp_request_id String 111 请求唯一ID

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionProxySmartmonitorSessionGetlistRequest req = new AlibabaSecurityDeepvisionProxySmartmonitorSessionGetlistRequest();
AlibabaSecurityDeepvisionProxySmartmonitorSessionGetlistRequest.PedestrianSessionSearchParam obj1 = new AlibabaSecurityDeepvisionProxySmartmonitorSessionGetlistRequest.PedestrianSessionSearchParam();
obj1.setXid("121212");
obj1.setCameraId("12121");
obj1.setPayerId("12121");
obj1.setApiSign("12121");
obj1.setStartTime(12121L);
obj1.setEndTime(12121L);
obj1.setTenantCode("12121");
List<AlibabaSecurityDeepvisionProxySmartmonitorSessionGetlistRequest.FeatureSearchItem> list3 = new ArrayList<AlibabaSecurityDeepvisionProxySmartmonitorSessionGetlistRequest.FeatureSearchItem>();
AlibabaSecurityDeepvisionProxySmartmonitorSessionGetlistRequest.FeatureSearchItem obj4 = new AlibabaSecurityDeepvisionProxySmartmonitorSessionGetlistRequest.FeatureSearchItem();
list3.add(obj4);
obj4.setImage("12121");
obj4.setThreshold("0.2");
obj4.setType("12121");
obj4.setTopN(10L);
obj1.setItems(list3);
obj1.setPoiId("xxxx");
obj1.setMemberId("12121");
obj1.setToken("12121");
obj1.setRequestId("1111");
req.setParam(obj1);
AlibabaSecurityDeepvisionProxySmartmonitorSessionGetlistResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_deepvision_proxy_smartmonitor_session_getlist_response>
    <result>
        <datas>
            <session_id>1</session_id>
            <best_face_oss>1111</best_face_oss>
            <best_face_url>1111</best_face_url>
            <best_body_oss>1111</best_body_oss>
            <best_body_url>1111</best_body_url>
            <enter_field>1111</enter_field>
            <exit_field>1111</exit_field>
            <similar_score>0.3</similar_score>
        </datas>
    </result>
    <resp_success>true</resp_success>
    <resp_code>1</resp_code>
    <message>成功</message>
    <resp_request_id>111</resp_request_id>
</alibaba_security_deepvision_proxy_smartmonitor_session_getlist_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

返回
顶部