聚安全实人认证证件OCR识别功能接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
verify_token | String | 必须 | 96203ef1639346d6a9ea752c7a41cb68 | token | |
image_urls | Json | 必须 | {"key":"value"} | 要识别的信息 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | RpidCard | {} | result |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaSecurityJaqRpOcrCheckRequest req = new AlibabaSecurityJaqRpOcrCheckRequest(); req.setVerifyToken( "96203ef1639346d6a9ea752c7a41cb68" ); req.setImageUrlsString( "{\"key\":\"value\"}" ); AlibabaSecurityJaqRpOcrCheckResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | < alibaba_security_jaq_rp_ocr_check_response > < data > < rp_idcard_image > < back_image_url >url</ back_image_url > < card_type >IdentityCard</ card_type > < front_image_url >url</ front_image_url > </ rp_idcard_image > < address >北京</ address > < birth_day >19890909</ birth_day > < biz_error_code > < error_code ></ error_code > < error_msg ></ error_msg > < error_name ></ error_name > </ biz_error_code > < card_type >IdentityCard</ card_type > < code >身份证号</ code > < expiry >20190909</ expiry > < name >李三</ name > < sex > < type >MAN</ type > </ sex > < url_back_image >url</ url_back_image > < url_front_image >url</ url_front_image > </ data > </ alibaba_security_jaq_rp_ocr_check_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isp.server-error | 服务端错误 | 稍后重试 |
isv.param-error | 请求参数错误 | 检测入参 |