文档中心 > API类目 > 五道口API

com.wdk.iot.skyeye.client.api.identify.employee.face (根据人脸检测员工)

人脸识别检测

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
image String 必须 http://host.1.cn/1.jpg 图片地址 /支持base64编码
merchant_code String 必须 CSDRF01001 商家编码
ou_code String 必须 CSDRF01001 门店编码
threshold String 可选 0.58 门限

响应参数

名称 类型 示例值 描述
total Number 1 总数
data DVRiskPersonIdentityWithImage {} 返回数据对象
  • └ req_image
  • String
  • http://host.1.cn/1.jpg
  • 传入的图片地址/只有请求地址为oss形式时才返回
  • results
  • DVRiskPersonIdentityResult []
  • {}
  • 返回对象
  • └ similarity
  • Number
  • 0.99
  • 命中的相似度
  • └ match
  • Boolean
  • false
  • 是否命中
  • └ person_set_id
  • String
  • {}
  • 命中的person集合,type 为 {@link DVRiskPersonScene#TENANT_DEFINED} 才有该值
  • └ person_id
  • String
  • 124
  • 命中的personId,type 为 {@link DVRiskPersonScene#TENANT_DEFINED} 才有该值
  • └ face_id
  • String
  • 123
  • 命中的人脸底库,type 为 {@link DVRiskPersonScene#TENANT_DEFINED} 才有该值
  • └ type
  • String
  • SYSTEM_FRAUD
  • 检索的类型, 定义 {@link DVRiskPersonScene }
success Boolean false 是否成功
res_code Number 1 错误编码
res_msg String success 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
ComWdkIotSkyeyeClientApiIdentifyEmployeeFaceRequest req = new ComWdkIotSkyeyeClientApiIdentifyEmployeeFaceRequest();
req.setImage("http://host.1.cn/1.jpg");
req.setMerchantCode("CSDRF01001");
req.setOuCode("CSDRF01001");
req.setThreshold("0.58");
ComWdkIotSkyeyeClientApiIdentifyEmployeeFaceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<com_wdk_iot_skyeye_client_api_identify_employee_face_response>
    <total>1</total>
    <data>
        <req_image>http://host.1.cn/1.jpg</req_image>
        <results>
            <d_v_risk_person_identity_result>
                <similarity>0.99</similarity>
                <match>false</match>
                <person_set_id>{}</person_set_id>
                <person_id>124</person_id>
                <face_id>123</face_id>
                <type>SYSTEM_FRAUD</type>
            </d_v_risk_person_identity_result>
        </results>
    </data>
    <success>false</success>
    <res_code>1</res_code>
    <res_msg>success</res_msg>
</com_wdk_iot_skyeye_client_api_identify_employee_face_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

返回
顶部