LicensePlateRecognition
python + opencv + pytorch 实现车牌识别
Install / Use
/learn @pingxi1009/LicensePlateRecognitionREADME
文件说明: 1、single_num 文件夹是用来存放生成的车牌字符图片 2、Model.pth 是 CNN 生成的模型文件 3、bmp2jpg.py 是用来将BMP文件转化为JPG文件,这里用不到,我主要是用来批量处理数据集的,因为我搜集到的数据集是BMP格式的,我转化成了JPG格式 4、extract_License_Plate.py 是用来提取车牌和分割车牌 5、palat.jpg 是提取出的车牌的二值图 6、resize.py 是将提取出的车牌resize到32x40大小 7、test.py 是测试的,查看车牌预测结果 8、test6.png 这个是我们的原始图 9、train.py 这个是 CNN 训练模型,生成 Model.pth
使用须知: 1、我的环境是 (win10 64位) + (Python 3.8.3) + (OpenCV 4.5.1) + (Pytorch 1.7.0+cu110) 2、要跑起来先运行 extract_License_Plate.py 提取出车牌字符,然后运行 resize.py 将提取出的车牌resize到32x40大小,之后运行 train.py 训练模型,最后运行 test.py 跑出结果 3、原博客链接:https://blog.csdn.net/weixin_41645749/article/details/115652113
目前存在的问题:泛化能力一般,最主要是抠车牌和车牌分割的时候如果噪点很多,最后可能不能正确的分割车牌,目前没时间优化这个,如果有比较好的方法 欢迎联系我沟通交流,一起进步一起成长1009088103@qq.com
Related Skills
node-connect
329.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
329.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.1kCommit, push, and open a PR
