1、接口说明
(注:调用图片为base64流接口时传参数img,调用图片为file格式接口传参数file)
2、请求参数
| 序号 | 名称 | 类型 | 必填 | 说明 | 
| 1 | img | String | 是 | 上传的文件(图片的base64流) | 
| 2 | file | MultipartFile | 是 | 上传的文件(上传文件的字段名必须是“file”) | 
| 3 | key | String | 是 | 用户ocrKey | 
| 4 | secret | String | 是 | 用户ocrSecrert | 
| 5 | typeId | Integer | 是 | 识别类型:17 | 
| 6 | format | String | 是 | 返回格式(xml或者json),如果format为空,则默认返回xml | 
3、识别错误码
| value值 | 描述 | 
| LoadImageFile fail9 | 加载图像失败 | 
| RecognizeBankCard fail11 | 识别失败 | 
4、结果示例
{
    "message": {
        "status": 0,
        "value": "识别完成"
    },
    "cardsinfo": [
        {
            "type": "17",
            "items": [
                {"nID": null, "index": null, "desc": "卡号", "content": "***"},
                {"nID": null, "index": null, "desc": "银行卡类型", "content": "***"},
                {"nID": null, "index": null, "desc": "银行卡名称", "content": "***"},
                {"nID": null, "index": null, "desc": "银行名称", "content": "***"},
                {"nID": null, "index": null, "desc": "银行编号", "content": "***"},
                {"nID": null, "index": null, "desc": "有效日期", "content": "***"},
                {"nID": null, "index": null, "desc": "银行卡持有人", "content": "***"}
            ]
        }
    ]
}