人证核身服务 IVS-使用身份证图片、人脸视频验证:响应示例

时间:2024-11-25 17:13:11

响应示例

状态码: 200

OK

{
  "meta" : {
    "uuid" : "user_defined"
  },
  "result" : {
    "service_name" : "ivs-standard",
    "count" : 1,
    "resp_data" : [ {
      "verification_result" : "valid",
      "verification_message" : "Successful certification",
      "verification_code" : 1000,
      "similarity" : "65",
      "idcard_result" : {
        "name" : "张三",
        "sex" : "男",
        "birth" : "2000-03-06",
        "ethnicity" : "汉",
        "address" : "XX省XX市XX区XX街道XX号",
        "number" : "44***********07",
        "issue" : "XX省XX市XX区XX派出所",
        "valid_from" : "2004-08-26",
        "valid_to" : "2034-08-26"
      },
      "video_result" : {
        "alive" : true,
        "actions" : [ {
          "confidence" : 0.823,
          "action" : 1
        }, {
          "confidence" : 0.823,
          "action" : 3
        }, {
          "confidence" : 0.823,
          "action" : 2
        } ],
        "picture" : "/9j/4AAQSkZJRgABAQEAYABgAAD/2w..."
      }
    } ]
  }
}

状态码: 400

失败响应样例

{
  "error_code" : "IVS.0003",
  "error_msg" : "Some necessary request parameters in req_data is null."
}
support.huaweicloud.com/api-ivs/ivs_02_0027.html