python3+sdk
代码:
imageType="URL"
image = data["url"]
idCardNumber = data["idCardNumber"]
name = str(data["name"].encode('utf-8'),encoding='utf-8')
""" 调用身份验证 """
#client.personVerify(image, imageType, idCardNumber, name);
""" 如果有可选参数 """
options = {}
options["quality_control"] = "NONE"
options["liveness_control"] = "NONE"
""" 带参数调用身份验证 """
result1=client.personVerify(image, imageType, idCardNumber, json.dumps(name), options)
参数:本人身份证号码+本人图片
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
接口错误码是6?那是没有接口权限。有的接口权限需要额外申请的哦