|
|
|
|
# yx-image-recognition
|
|
|
|
|
|
|
|
|
|
#### 介绍
|
|
|
|
|
- **spring boot + maven实现的车牌识别系统**
|
|
|
|
|
- 基于Opencv实现、在EasyPR-Java的基础上优化配置及依赖版本
|
|
|
|
|
- 入门级项目
|
|
|
|
|
|
|
|
|
|
#### 包含功能
|
|
|
|
|
- 黄 蓝 绿车牌检测及车牌号码识别
|
|
|
|
|
- 单张图片识别、多张图片并发识别、单图片多车牌识别
|
|
|
|
|
- 车牌检测训练
|
|
|
|
|
|
|
|
|
|
#### 软件版本
|
|
|
|
|
- jdk 1.8.61+
|
|
|
|
|
- maven 3.0+
|
|
|
|
|
- opencv 4.0.1 ; javacpp1.4.4;opencv-platform 4.0.1-1.4.4
|
|
|
|
|
- spring boot 2.1.5.RELEASE
|
|
|
|
|
- yx-image-recognition 1.0.0版本
|
|
|
|
|
|
|
|
|
|
#### 软件架构
|
|
|
|
|
- B/S 架构,前端html + requireJS,后端java
|
|
|
|
|
- 数据库使用 sqlite3.0
|
|
|
|
|
- 接口文档使用swagger 2.0
|
|
|
|
|
|
|
|
|
|
#### 车牌识别流程
|
|
|
|
|
- **操作界面**
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
- **图片处理过程**
|
|
|
|
|
|
|
|
|
|
debug_GaussianBlur:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_gray:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_Sobel:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_threshold:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_morphology:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_Contours:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_result:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_crop:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_resize:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
final_result:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
- **图片车牌文字识别过程**
|
|
|
|
|
|
|
|
|
|
debug_char_threshold:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_char_clearLiuDing:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_specMat:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_chineseMat:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
debug_char_auxRoi:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### 安装教程
|
|
|
|
|
|
|
|
|
|
- 将项目拉取到本地,PlateDetect文件夹拷贝到d盘下,默认车牌识别操作均在d:/PlateDetect/目录下处理
|
|
|
|
|
- 需要修改操作路径,修改com/yuxue/constant/Constant.java文件常量参数即可,可以使用绝对盘符路径,也可以使用项目相对路径
|
|
|
|
|
- lib下依赖包添加到build path;或者修改pom文件的注释内容,将opencv-platform依赖取消注释
|
|
|
|
|
- spring boot方式运行项目,浏览器上输入 http://localhost:16666/index 即可打开操作界面
|
|
|
|
|
- 浏览器上输入 http://localhost:16666/swagger-ui.html 即可打开接口文档页面
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
#### 使用说明
|
|
|
|
|
|
|
|
|
|
- 入门级教程项目,本人目前也正在学习图片识别相关技术;大牛请绕路
|
|
|
|
|
- 当前项目绿牌检测仅能偶尔测通,还需要继续完善
|
|
|
|
|
- 当前已经添加车牌检测训练,后续会逐步添加车牌号码识别训练
|
|
|
|
|
- 后续会逐步加入人脸识别等功能
|
|
|
|
|
- **车牌图片来源于网络,仅用于交流学习,不得用于商业用途;如有侵权,请联系本人删除**
|
|
|
|
|
|