文档中心 > API类目 > 智慧园区API

alibaba.campus.guard.eyeglasses.identify (人员识别)

人员识别

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
person_identify_request_dto PersonIdentifyRequestDTO 可选 请求参数
  • └ pic_content
  • String
  • 可选
  • base64
  • 图片base64
  • └ campus_id
  • Number
  • 可选
  • 100001
  • 园区ID

响应参数

名称 类型 示例值 描述
result PojoResult 返回结果
  • └ api_success
  • Boolean
  • true
  • 接口调用是否成功
  • └ request_id
  • String
  • ""
  • 请求id
  • └ error_code
  • String
  • 10001
  • 错误码code
  • └ error_ext_info
  • String
  • “”
  • 错误扩展信息
  • content
  • PersonIdentityResultDTO
  • 返回结果
  • └ person_type
  • String
  • ALI_VISITOR
  • 人员类型code
  • └ person_type_name
  • String
  • 阿里访客
  • 人员类型name
  • └ user_name
  • String
  • 张三
  • 用户姓名
  • └ work_no
  • String
  • 7777
  • 工号
  • └ extra_info
  • String
  • ""
  • 扩展信息
  • └ campus_id
  • String
  • 100001
  • 园区ID
  • └ campus_name
  • String
  • 西溪A区
  • 园区名称
  • └ company_name
  • String
  • 浙江有鹿有限公司
  • 公司名称
  • └ project_name
  • String
  • 西溪A区水池清洗项目
  • 项目名称
  • └ visit_area
  • String
  • visitorArea-访客区,workArea-工作区,campusArea-园区
  • 来访区域
  • └ visit_id
  • String
  • 106798
  • 访客单ID
  • └ error_msg
  • String
  • “园区不能为空”
  • 错误信息
  • └ error_level
  • String
  • 4
  • 错误码等级

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusGuardEyeglassesIdentifyRequest req = new AlibabaCampusGuardEyeglassesIdentifyRequest();
AlibabaCampusGuardEyeglassesIdentifyRequest.PersonIdentifyRequestDTO obj1 = new AlibabaCampusGuardEyeglassesIdentifyRequest.PersonIdentifyRequestDTO();
obj1.setPicContent("base64");
obj1.setCampusId(100001L);
req.setPersonIdentifyRequestDto(obj1);
AlibabaCampusGuardEyeglassesIdentifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_guard_eyeglasses_identify_response>
    <result>
        <api_success>true</api_success>
        <request_id>&quot;&quot;</request_id>
        <error_code>10001</error_code>
        <error_ext_info>“”</error_ext_info>
        <content>
            <person_type>ALI_VISITOR</person_type>
            <person_type_name>阿里访客</person_type_name>
            <user_name>张三</user_name>
            <work_no>7777</work_no>
            <extra_info>&quot;&quot;</extra_info>
            <campus_id>100001</campus_id>
            <campus_name>西溪A区</campus_name>
            <company_name>浙江有鹿有限公司</company_name>
            <project_name>西溪A区水池清洗项目</project_name>
            <visit_area>visitorArea-访客区,workArea-工作区,campusArea-园区</visit_area>
            <visit_id>106798</visit_id>
        </content>
        <error_msg>“园区不能为空”</error_msg>
        <error_level>4</error_level>
    </result>
</alibaba_campus_guard_eyeglasses_identify_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

返回
顶部