这是一个在不分割字符的情况下直接识别车牌号码的简单项目。
#### 使用方法:
##### 第一步:生成训练和测试数据集
```
cd generateCarPlate
python3 genCarPlate.py
```
将会在data目录下生成train、test数据集。
生成的图片示例:
![沪KTKLTZ](https://github.com/sunnythree/car_plate/blob/master/doc/沪KTKLTZ.jpg)
![津GMQGF7](https://github.com/sunnythree/car_plate/blob/master/doc/津GMQGF7.jpg)
![渝M885B9](https://github.com/sunnythree/car_plate/blob/master/doc/渝M885B9.jpg)
![蒙ZUTK8T](https://github.com/sunnythree/car_plate/blob/master/doc/蒙ZUTK8T.jpg)
生成的图片已经做了旋转、模糊、灰度变化等图像增强。git
### 训练卷积only的模型
##### 网络模型:
![model](https://github.com/sunnythree/car_plate/blob/master/doc/car_plate_rec.png)
##### 训练
```
cd pytorch_model
python3 train.py 30 0.0001
```
30是在训练集训练的次数,0.0001是学习速率
##### 测试
```
python3 test.py
```
将会输出准确率,我训练的car_plate_javer.pt模型能达到98.2的准确率(由于训练和测试数据集都是随机生成的,因此可能不同人测试有差异)。
这个准确率不算高,由于我的笔记本算力有限,没能进一步训练更大、更好的模型,不过我想,这个项目已足以证明不分割直接识别车牌的可行性
### 训练crnn(双向gru)+ctc
##### 网络模型:
![model](https://github.com/sunnythree/car_plate/blob/master/doc/crnn-ctc.png)
##### 训练
```
cd pytorch_model
python3 train.py 30 0.0001 10
```
30是在训练集训练的次数,0.0001是学习速率,10是batch的大小
##### 测试
```
python3 test.py
```
#### Pull Request
Pull request is welcome.
#### communicate with
QQ group: 704153141
#### 致谢
数据集生成使用了[genCarPlate](https://github.com/derek285/generateCarPlate),感谢作者!
#### License
BSD 3-Clause
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
car_plate-master.zip (39个子文件)
.gitignore 13B
data
train3
train
test
generateCarPlate
font
platechar.ttf 16KB
platech.ttf 14.01MB
PlateCommon.py 7KB
README.md 1KB
.idea
.gitignore 39B
misc.xml 185B
vcs.xml 180B
inspectionProfiles
profiles_settings.xml 174B
generateCarPlate.iml 428B
modules.xml 284B
__pycache__
PlateCommon.cpython-37.pyc 7KB
PlateCommon.cpython-36.pyc 7KB
genCarPlate.py 8KB
template
blue.bmp 1.54MB
smu2.jpg 1.56MB
smu.jpg 1.05MB
yellow.bmp 1.54MB
doc
沪KTKLTZ.jpg 6KB
津GMQGF7.jpg 5KB
蒙ZUTK8T.jpg 5KB
渝M885B9.jpg 8KB
car_plate_rec.png 43KB
crnn-ctc.png 10KB
README.md 2KB
.idea
.gitignore 184B
car_plate-master.iml 291B
misc.xml 179B
workspace.xml 8KB
inspectionProfiles
Project_Default.xml 17KB
profiles_settings.xml 174B
modules.xml 291B
pytorch_model_crnn_ctc
test.py 4KB
car_plate.pt 3.36MB
train.py 6KB
pytorch_model
test.py 4KB
car_plate.pt 4.35MB
car_plate_javar.pt 4.35MB
train.py 4KB
共 39 条
- 1
资源评论
hq0523
- 粉丝: 18
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 实验一、线性表的基本操作.doc
- Day43 Java反射(二)
- kenwood-健伍TK-868G车载电台维修手册(含PCB图、原理图)2024更新
- kenwood-健伍tm-471a车载电台维修手册(含PCB图、原理图)2024
- Android System WebView-109.0.5414.118 arm,arm64.apk
- 无人机遂行编队飞行中的纯方位无源定位_周宏兵.pdf
- 2000-2017年各省经济政策不确定性指数数据.xlsx
- 基于matlab实现的云模型发生器 包括基本云发生器,x条件云发生器,y条件云发生器 现已用于数据挖掘等基本领域.rar
- 基于matlab实现的图像匹配和深度图计算程序.rar
- 基于matlab实现的霍夫曼Huffman编码译码GUI界面设计 源程序代码.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功