!!! 有需要的小伙伴可以通过文章末尾名片咨询我哦!!!
💕💕作者:小马
💕💕个人简介:混迹在java圈十年有余,擅长Java、微信小程序、Python、Android等,大家有这一块的问题可以一起交流!
💕💕各类成品java系统 。javaweb,ssh,ssm,springboot等等项目框架,源码丰富,欢迎咨询交流。学习资料、程序开发、技术解答、代码讲解、源码部署,需要请看文末联系方式。
基于 OpenCV 的车牌识别系统的设计与实现
摘要 根据中国汽车工业协会统计分析,近年来汽车产销比呈现持续增长趋势。
汽车拥有率的增长给我国交通部门工作造成的压力也在持续增长,但是目前已经存在的车牌识别系统并不能很好地适应持续增长的工作量,识别效率与识别准确率也有待优化,并且人机交互页面也不够友好。为缓解交通部门日子增加的工作量、推进智能交通的推广、更加准确高效地完成车牌识别的工作,设计一款高效率且人机交互界面友好的车牌识别系统成为时代所趋。
本文设计并实现了一个基于 OpenCV(Open Source Computer Vision Library)的车牌识别系统,并设计了一个停车场仿真系统用于测试并展示车牌识别系统的识别成果。车牌识别系统可以在一般电脑上对车辆检测和车牌识别的模型进行训练,并流畅测试运行。用户可以选择一定数量的待检测图像导入到指定文件夹下, 车牌识别系统运行完成后会完成车辆检测和车牌识别工作,并将检测后图像存入指定文件夹下,将图像文件名与其对应识别信息写入表格方便查阅。停车场仿真系统会根据登录权限展示不同页面,普通用户可以进行进入、离开停车场以及计费、支付的仿真操作,管理员用户可以管理、统计、查看停车场中车辆。
本文对现有的车辆检测以及车牌识别算法进行研究,选用了较为符合需求的WPOD-Net 深度网络(Warped Planar Object Detection Network)作为车辆检测算法以及 OCRNet 深度网络(Optical Character Recognition Network)作为车牌识别算法,并使用 OpenCV 框架调用 YOLOv5 (You Only Look Once)进行模型的训
练以及部署。软件采用较为轻量便捷的 GU(I Graphical User Interface)框架 Tkinter
开发编写停车场仿真系统,界面简单清爽,运行流畅。
Design and Implementation of a License Plate Recognition System
Based on OpenCV
Abstract According to the statistical analysis of the China Association of Automobile Manufacturers, the automobile production sales ratio has shown a continuous growth trend in recent years. The increase in car ownership has also continued to put
pressure on the work of China's transportation department. However, the existing license plate recognition systems cannot adapt well to the continuous increase in workload, and recognition efficiency and accuracy still need to be optimized, and human-computer interaction pages are not user-friendly enough. To alleviate the increasing workload of transportation departments, promote the promotion of intelligent transportation, and complete the work of license plate recognition more accurately and efficiently, designing an efficient and user-friendly license plate recognition system has become a trend of the times.
This article designs and implements a license plate recognition system based on OpenCV, and designs a parking lot simulation system to test and display the recognition results of the license plate recognition system. The license plate recognition system can retrain the model of vehicle detection and license plate recognition on a general computer, and smoothly test and run it. Users can select a certain number of images to be detected and import them into a designated folder. After the license plate recognition system runs, it will complete the vehicle detection and license plate recognition work, and store the detected images in the designated folder. The image file name and its corresponding recognition information will be written into the table for easy reference. The parking lot simulation system will display different pages based on login permissions. Ordinary users can perform simulation operations such as entering and leaving the parking lot, as well as billing and payment. Administrator users can manage, count, and view vehicles in the parking lot.
This article conducts research on existing vehicle detection and license plate recognition algorithms, selecting WpodNet vehicle detection algorithm and OCRNet
license plate recognition algorithm that meet the requirements, and utilizing the YOLOv5 framework that extensively uses OpenCV for model training and deployment. The software adopts the relatively lightweight and convenient GUI framework Tkinter to develop and write a parking lot simulation system, with a simple and refreshing interface and smooth operation.
目录
1.1 研究背景..................................................... 1
1.2 研究现状..................................................... 2
1.3 论文结构..................................................... 3
2.1 深度学习概述................................................. 5
2.1.1 神经网络与深度学习基本概念 ............................. 5
2.1.2 卷积神经网络 ........................................... 6
2.1.3 残差神经网络 ........................................... 7
2.2 车牌检测深度网络 WPOD-NET .................................... 7
2.2.1 算法概述 ............................................... 7
2.2.2 网络结构设计 ........................................... 8
2.2.3 损失函数设计 ........................................... 9
2.3 车牌识别深度网络 OCRNet ..................................... 10
2.3.1 算法概述 .............................................. 10
2.3.2 网络结构设计 .......................................... 10
2.3.3 损失函数设计 .......................................... 11
3.1 整体方案.................................................... 12
3.3 车牌识别模型................................................ 13
3.4 实验与分析对比.............................................. 14
3.4.1 实验环境 .............................................. 14
3.4.2 实验参数设置 .......................................... 14
3.4.3 中国城市停车数据集 CCPD2019 上实验结果与分析........... 15
4.1 可行性分析.................................................. 17
4.1.1 经济可行性分析 ........................................ 17
4.1.2 技术可行性分析 ........................................ 17
4.1.3 法律可行性分析 ........................................ 17
4.1.4 环境可行性分析 ........................................ 18
4.2 软件相关技术................................................ 18
4.2.1 Python 与 Tkinter...................................... 18
4.2.2 计算机视觉库 OpenCV.................................... 18
4.2.3 机器学习库 PyTroch..................................... 19
4.2.4 科学计算库 Numpy....................................... 20
4.2.5 深度学习框架 YOLO...................................... 20
4.3 软件设计目标................................................ 21
4.4 软件功能需求分析............................................ 21
4.4.1 车牌检测模块 .......................................... 22
4.4.2 车牌识别模块 .......................................... 22
4.4.3 基于车牌识别的停车场仿真系统模块 ...................... 23
4.4 软件总体设计................................................ 24
4.5 软件功能流程图.............................................. 26
5.1 车牌检测算法实现............................................ 27
5.1.1 车牌检测网络实现 ...................................... 27
5.1.2 数据集的选择与训练 .................................... 27
5.2 车牌识别算法实现............................................ 30
5.2.1 车牌识别网络实现 ...................................... 30
5.2.2 数据集的选择与训练 .................................... 30
5.3 软件开发环境................................................ 31
5.4 停车场仿真模块实现.......................................... 32
5.4.1 登录界面 .............................................. 32
5.4.2 普通用户界面 .......................................... 33
5.4.3 管理员用户界面 ........................................ 35
更多项目:
另有1000+份项目源码,项目有java(包含springboot,ssm,jsp等),小程序,python,php,net等语言项目。项目均包含完整前后端源码,可正常运行!
!!! 有需要的小伙伴可以点击下方链接咨询我哦!!!