图像字符识别同步检测接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
image_url | String | 必须 | http://taobao.com/demo.jpg | 待检测图像链接 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | JaqOcrImageDetectResult | 出参结构体 | |
|
1 2 3 4 5 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaSecurityJaqOcrImageSyncDetectRequest req = new AlibabaSecurityJaqOcrImageSyncDetectRequest(); AlibabaSecurityJaqOcrImageSyncDetectResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 | < alibaba_security_jaq_ocr_image_sync_detect_response > < data > < texts > < string >000</ string > < string >OOO</ string > < string >0O0</ string > < string >ooo</ string > < string >00O</ string > </ texts > </ data > </ alibaba_security_jaq_ocr_image_sync_detect_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 > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.param-error | 请求参数错误 | 检查入参 |
isp.server-error | 服务端错误 | 稍后重试 |