
[java]毕业设计基于深度学习纯java的智能车牌识别支持14种中文车牌类型源码及实现过程
车牌识别服务API。
最全车牌识别
最全车牌识别算法,支持14种中文车牌类型。
项目使用纯Java开发,免去使用Python带来的服务不稳定性。
项目简介
项目使用组件
1、spring boot
2、onnx
深度学习模型
1、Chinese_license_plate_detection_recognition
项目文档
在线文档:文档-1.1.0
swagger文档:启动项目且开启swagger,访问:host:port/doc.html, 如 http://127.0.0.1:8080/doc.html
JAVA客户端
Java依赖,未发布到中央仓库,需要自行编译发布到私有仓库
<dependency>
<groupId>com.visual.open.anpr</groupId>
<artifactId>open-anpr-client</artifactId>
<version>1.1.0</version>
</dependency>
其他语言依赖
使用restful接口:文档-1.1.0
项目部署
- docker部署
1、直接docker部署项目: docker run -d --name "open-anpr" -p 56790:8080 divenswu/open-anpr:1.1.0 2、若想禁用swagger: docker run -d --name "open-anpr" -p 56790:8080 -e VISUAL_SWAGGER_ENABLE=false divenswu/open-anpr:1.1.0 3、若想挂载日志目录到本地: docker run -d --name "open-anpr" -p 56790:8080 -v open-anpr/logs:/app/open-anpr/logs divenswu/open-anpr:1.1.0 4、服务访问: swagger接口文档: http://127.0.0.1:56790/doc.html
- 项目编译,并打包为docker镜像
1、java版本最低为:1.8;安装maven编译工具。安装docker。 2、克隆项目 git clone https://gitee.com/open-visual/open-anpr.git 3、项目打包 cd open-anpr && sh scripts/docker_build.sh
- 部署参数
参数 | 描述 | 默认值 | 可选值 |
---|---|---|---|
VISUAL_SWAGGER_ENABLE | 是否开启swagger | true | true/false |
车牌识别服务API
简介:车牌识别服务API
HOST:http://127.0.0.1:8080
联系人:
Version:1.0.0
接口路径:/v3/api-docs?group=1.0.0
[TOC]
01、车牌识别服务
1、车牌识别
接口地址:/visual/plate/recognition
请求方式:POST
请求数据类型:application/x-www-form-urlencoded,application/json
响应数据类型:*/*
接口描述:
请求示例:
{ "image": "", "limit": 0 }
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
plateInfoReqVo | 车牌识别参数 | body | true | PlateInfoReqVo | PlateInfoReqVo |
image | 图像Base64编码值 | true | string | ||
limit | 最大搜索条数:默认5 | false | integer(int32) |
响应状态:
状态码 | 说明 | schema |
---|---|---|
200 | OK | ResponseInfo«List«PlateInfoRepVo»» |
201 | Created | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
响应参数:
参数名称 | 参数说明 | 类型 | schema |
---|---|---|---|
code | 返回代码 | integer(int32) | integer(int32) |
data | 数据信息 | array | PlateInfoRepVo |
location | 车牌位置信息 | PlateLocation | PlateLocation |
leftBottom | 左下角坐标 | LocationPoint | LocationPoint |
x | 坐标X的值 | integer | |
y | 坐标Y的值 | integer | |
leftTop | 左上角坐标值 | LocationPoint | LocationPoint |
x | 坐标X的值 | integer | |
y | 坐标Y的值 | integer | |
rightBottom | 右下角坐标 | LocationPoint | LocationPoint |
x | 坐标X的值 | integer | |
y | 坐标Y的值 | integer | |
rightTop | 右上角坐标 | LocationPoint | LocationPoint |
x | 坐标X的值 | integer | |
y | 坐标Y的值 | integer | |
recognition | 车牌识别信息 | RecognitionInfo | RecognitionInfo |
layout | 车牌布局,单排还是双排,可用值:DOUBLE,SINGLE,UNKNOWN | string | |
plateColor | 车牌的颜色信息,可用值:BLACK,BLUE,GREEN,UNKNOWN,WHITE,YELLOW | string | |
plateNo | 车牌文本信息 | string | |
score | 车牌置信分数:[0,100] | number(float) | |
message | 返回信息 | string |
响应示例:
{ "code": 0, "data": [ { "location": { "leftBottom": { "x": 0, "y": 0 }, "leftTop": { "x": 0, "y": 0 }, "rightBottom": { "x": 0, "y": 0 }, "rightTop": { "x": 0, "y": 0 } }, "recognition": { "layout": "", "plateColor": "", "plateNo": "" }, "score": 0 } ], "message": "" }
项目演示
完整源码下载地址:https://download.csdn.net/download/FL1768317420/89325238
更多推荐
所有评论(0)