1、接口说明
(注:调用图片为base64流接口时传参数img,调用图片为file格式接口传参数file)
2、请求参数
序号 |
名称 |
类型 |
必填 |
说明 |
1 |
img |
String |
是 |
上传的文件(图片的base64流)(jpg、bmp图片) |
2 |
file |
MultipartFile |
是 |
上传的文件(上传文件的字段名必须是“file”) |
3 |
key |
String |
是 |
用户ocrKey |
4 |
secret |
String |
是 |
用户ocrSecrert |
5 |
typeId |
Integer |
是 |
识别类型:19 |
6 |
format |
String |
是 |
返回格式(xml或者json),如果format为空,则默认返回xml |
3、结果示例
{
"message": {
"status": 0,
"value": "识别完成"
},
"cardsinfo": [
{
"type": "19",
"items": [
{"nID": null, "index": null, "desc": "车牌号", "content": "***"},
{"nID": null, "index": null, "desc": "车牌颜色", "content": "蓝"},
{"nID": null, "index": null, "desc": "车牌颜色", "content": "1"},
{"nID": null, "index": null, "desc": "车牌类型", "content": "1"},
{"nID": null, "index": null, "desc": "车牌类型", "content": "蓝牌"},
{"nID": null, "index": null, "desc": "整牌可信度", "content": "93"},
{"nID": null, "index": null, "desc": "亮度评价", "content": "0"},
{"nID": null, "index": null, "desc": "车牌运动方向", "content": "0"},
{"nID": null, "index": null, "desc": "车牌位置(left_top_right_bottom)", "content": "左_顶_右_下"}
]
}
]
}