1、接口说明

接口地址
图片为base64流 https://netocr.com/api/recogliu.do
图片为file格式 https://netocr.com/api/recog.do
接口调用方法 post

(注:调用图片为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"},  //(0未知  1蓝色  2黄色 3白色  4黑色  5绿色  6黄绿色)
                {"nID": null, "index": null, "desc": "车牌类型", "content": "1"}, //(0:未知车牌;1:蓝牌;2:黑牌;3:单排黄牌;4:双排黄牌(大车尾牌,农用车);5:警车车牌;6:武警车牌;7:个性化车牌;8:单排军车;9:双排军车;10:使馆牌;11:香港牌;12:拖拉机;13:澳门牌;14:厂内牌;15:民航牌;16:领事馆车牌;17:新能源车牌-小型车;18:新能源车牌-大型车;19:厂车牌;20:应急救援车牌)
                {"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": "左_顶_右_下"}
            ]
        }
    ]
}

results matching ""

    No results matching ""