|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
#### 车牌识别流程
|
|
|
|
|
- **操作界面**
|
|
|
|
|
![1.png](./res/doc_image/1.png)
|
|
|
|
|
|
|
|
|
|
- **图片处理过程**
|
|
|
|
|
|
|
|
|
|
debug_GaussianBlur:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_GaussianBlur.jpg)
|
|
|
|
|
|
|
|
|
|
debug_gray:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_gray.jpg)
|
|
|
|
|
|
|
|
|
|
debug_Sobel:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_Sobel.jpg)
|
|
|
|
|
|
|
|
|
|
debug_threshold:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_threshold.jpg)
|
|
|
|
|
|
|
|
|
|
debug_morphology:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_morphology.jpg)
|
|
|
|
|
|
|
|
|
|
debug_Contours:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_Contours.jpg)
|
|
|
|
|
|
|
|
|
|
debug_result:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_result.jpg)
|
|
|
|
|
|
|
|
|
|
debug_crop:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_crop_1.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_crop_2.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_crop_3.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_crop_4.jpg)
|
|
|
|
|
|
|
|
|
|
debug_resize:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_resize_1.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_resize_2.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_resize_3.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_resize_4.jpg)
|
|
|
|
|
|
|
|
|
|
final_result:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/result_0.png)
|
|
|
|
|
|
|
|
|
|
- **图片车牌文字识别过程**
|
|
|
|
|
|
|
|
|
|
debug_char_threshold:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_char_threshold.jpg)
|
|
|
|
|
|
|
|
|
|
debug_char_clearLiuDing:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_char_clearLiuDing.jpg)
|
|
|
|
|
|
|
|
|
|
debug_specMat:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_specMat.jpg)
|
|
|
|
|
|
|
|
|
|
debug_chineseMat:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_chineseMat.jpg)
|
|
|
|
|
|
|
|
|
|
debug_char_auxRoi:
|
|
|
|
|
|
|
|
|
|
![1.png](./res/doc_image/debug_char_auxRoi_0.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_char_auxRoi_1.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_char_auxRoi_2.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_char_auxRoi_3.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_char_auxRoi_4.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_char_auxRoi_5.jpg)
|
|
|
|
|
![1.png](./res/doc_image/debug_char_auxRoi_6.jpg)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### 安装教程
|
|
|
|
|
|
|
|
|
|
- 将项目拉取到本地,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 即可打开接口文档页面
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
#### 使用说明
|
|
|
|
|
|
|
|
|
|
- 入门级教程项目,本人目前也正在学习图片识别相关技术;大牛请绕路
|
|
|
|
|
- 当前项目绿牌检测仅能偶尔测通,还需要继续完善
|
|
|
|
|
- 当前已经添加车牌检测训练,后续会逐步添加车牌号码识别训练
|
|
|
|
|
- 后续会逐步加入人脸识别等功能
|
|
|
|
|
- **车牌图片来源于网络,仅用于交流学习,不得用于商业用途;如有侵权,请联系本人删除**
|
|
|
|
|
|