A Lightweight License Plate Recognition Method Based on YOLOv8
Abstract
1. Introduction
- (1)
- We propose a novel network structure termed GCE. In the GCE module, the input feature map is divided channel-wise into two sub-feature maps, denoted as A and B. The A sub-feature map is processed through multiple convolutional layers, and the resulting features are concatenated with the B sub-feature map. The merged feature map is then refined using a squeeze-and-excitation (SE) attention mechanism, enhancing the extraction of key target features while suppressing irrelevant noise. This design enables the model to achieve more accurate target recognition, while maintaining accuracy through a compact and computationally efficient architecture.
- (2)
- In YOLOv8, we incorporated the BIFPN structure for multi-scale feature fusion. Its core innovation lies in bidirectional cross-scale connections and weighted feature fusion, which efficiently integrate feature information across different levels, yielding improved performance in small target detection. Its unique feature fusion mechanism endows it with strong adaptability for license plate localization in complex environments. Specifically, its learnable weight mechanism enables the network to autonomously select features critical for license plate localization—such as license plate border textures and character contours—thereby suppressing background noise and enhancing the model’s license plate detection capability.
- (3)
- Building upon the traditional LPRNet architecture, we propose an improved model, N_E_LPRNet, which features a reduced computational load and can be deployed on mobile devices with limited resources. In neural networks, the dropout mechanism is commonly employed to prevent overfitting by randomly deactivating neurons. However, given that the original LPRNet model has relatively low complexity and the dataset used contains a large number of samples, overfitting is rarely observed. Moreover, the inherent randomness of dropout may lead to unstable recognition results due to neuron pruning. To address this, the improved model replaces dropout layers with batch normalization (BN) layers, which not only accelerates training but also enhances the model’s generalization ability and robustness. In addition, an Efficient Multi-scale Attention (EMA) module is incorporated into the network to strengthen its capacity for extracting and learning discriminative features from license plate images, thereby improving recognition accuracy.
2. Proposed Methods
2.1. YOLOv8n Algorithm Architecture
2.2. GCE Module
2.3. BIFPN Module
2.4. Improvement of the LPRNET Network Model
3. Experiment
3.1. Establishment and Processing of the Dataset
3.2. Experimental Environment
3.3. Evaluation Indicators
3.4. Comparative Experiment
3.5. Ablation Experiment
3.6. Some Visualized Experimental Results
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Xu, G.Z.; Kuang, W.; Li, X.W.; Wan, Q.B.; Shi, Y.T.; Lei, B.J. License Plate Location Based on YOLOv3 and Vertex Offset Estimation. Comput. Aided Des. Comput. Graph. 2021, 33, 569–579. [Google Scholar] [CrossRef]
- He, Z.L.; Xiao, Z.J.; Yan, Z.G. Lightweight Convolutional Network for License Plate Recognition. Qilu Univ. Technol. 2020, 34, 35–41. [Google Scholar]
- Rao, W.J.; Gu, Y.H.; Zhu, T.T.; Huang, Y.T. Intelligent License Plate Recognition Method in Complex Environment. Chongqing Univ. Technol. Nat. Sci. 2021, 35, 119–127. [Google Scholar]
- Guo, S.X.; Zhang, H. Embedded Device Realizes Low Light License Plate Image Recognition. Comput. Digit. Eng. 2022, 50, 881–886. [Google Scholar]
- Wu, H.W. Research on Vehicle License Plate Detection and Recognition System Based on Deep Learning. Master’s Thesis, Dalian University of Technology, Dalian, China, 2021. [Google Scholar]
- Cao, J.A.; Yang, W.M.; Luo, Y.T.; Pan, N.Y.; Zhang, W. Design of license plate recognition algorithm based on deep learning. Mod. Electron. Technol. 2025, 48, 135–139. [Google Scholar]
- Andrew, G.; Zhu, M.L. Efficient convolutional neural networks for mobile vision applications. Mobilenets 2017, 10, 151. [Google Scholar]
- Zhang, J.H.; Yang, Z.Y.; Xia, L.H.; Liang, Z.W. Lightweight Road Traffic Sign Detection Method with Attention Mechanism. Electron. Meas. Technol. 2023, 46, 85–92. [Google Scholar]
- Huang, C.Q.; Xu, H.Y.; Zhang, X.L.; Zhu, X.Z. BGR-YOLO: An Improved Object Detection Algorithm Under Traffic Scenarios Based on YOLOv8. Comput. Eng. Sci. 2025, 15, 1–13. [Google Scholar]
- Behera, S.K.; Dash, S.P.; Amat, R.; Sethy, P.K. Wafer defect identification with optimal hyper-parameter tuning of support vector machine using the deep feature of ResNet 101. Int. J. Syst. Assur. Eng. Manag. 2024, 15, 1294–1304. [Google Scholar] [CrossRef]
- Ullah, A.; Elahi, H.; Sun, Z.; Khatoon, A.; Ahmad, I. Comparative analysis of AlexNet, ResNet18 and SqueezeNet with diverse modification and arduous implementation. Arab. J. Sci. Eng. 2022, 47, 2397–2417. [Google Scholar] [CrossRef]
- Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. ICML. Pmlr. 2015, 37, 448–456. [Google Scholar]
Model | Param (106) | GFLOPs | Box: Map@ 0.5–95 | Size MB |
---|---|---|---|---|
YOLOv5s | 7.32 | 16.7 | 0.797 | 14.73 |
YOLOv5n | 1.92 | 4.5 | 0.736 | 3.86 |
YOLOv8s | 11.64 | 30.4 | 0.825 | 22.1 |
YOLOv8n | 3.29 | 9.3 | 0.778 | 6.09 |
YOLO11s | 9.71 | 22.5 | 0.834 | 18.8 |
YOLO11n | 2.66 | 6.7 | 0.783 | 5.32 |
DETR-L | 32.8 | 108 | 0.844 | 63.0 |
DETR-RESNRT50 | 42.7 | 130.5 | 0.851 | 82.0 |
GCE_B_YOLO | 2.25 | 6.7 | 0.769 | 4.17 |
Model | Param (106) | GFLOPs | Accuracy Rate % | Size MB |
---|---|---|---|---|
CRNN + CTC | 3.40 | 1.98 | 98.47 | 11.6 |
LPRNet | 0.44 | 0.14 | 94.36 | 1.73 |
N_E_LPRNet | 0.44 | 0.16 | 96.61 | 1.74 |
Model | Param (106) | GFLOPs | Box: Map@ 0.5–95 | Size MB |
---|---|---|---|---|
YOLOv8n | 3.29 | 9.3 | 0.778 | 6.09 |
YOLOv8n + A | 2.23 | 6.6 | 0.752 | 4.14 |
YOLOv8n + B | 3.31 | 9.3 | 0.787 | 6.12 |
YOLOv8n + A + B | 2.25 | 6.7 | 0.769 | 4.17 |
Model | Param | GFLOPs | Size/MB |
---|---|---|---|
LPRNet | 446,976 | 0.1478 | 1.73 |
LPRNet + A | 447,648 | 0.1633 | 1.73 |
LPRNet + B | 447,616 | 0.1482 | 1.73 |
LPRNet + A + B | 448,288 | 0.1637 | 1.74 |
Model | Maximum Value/ % | Minimum Value/ % | Average Value/ % | Mid-Value/ % | Variance |
---|---|---|---|---|---|
LPRNet | 95.62 | 93.73 | 94.41 | 94.36 | |
LPRNet + A | 95.36 | 94.83 | 95.09 | 95.12 | |
LPRNet + B | 97.03 | 94.88 | 95.92 | 95.82 | |
LPRNet + A + B | 96.97 | 96.31 | 96.56 | 96.61 |
Model | Maximum Value/ ms | Minimum Value/ ms | Average Value/ ms | Mid-Value/ ms |
---|---|---|---|---|
LPRNet | 65 | 32 | 48 | 50 |
LPRNet + A | 63 | 31 | 46 | 48 |
LPRNet + B | 68 | 34 | 49 | 51 |
LPRNet +A + B | 66 | 30 | 50 | 53 |
Model | Accuracy Rate % | Size/ MB | Value/ ms |
---|---|---|---|
YOLOv8n + LPRNet | 0.93 | 7.82 | 251 |
GCE_B_YOLO + LPRNet | 0.96 | 5.9 | 230 |
YOLOv8n + N_E_LPRNet | 0.94 | 7.83 | 275 |
GCE_B_YOLO + N_E_LPRNet | 0.97 | 5.91 | 235 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zhang, X.; Yu, S. A Lightweight License Plate Recognition Method Based on YOLOv8. Electronics 2025, 14, 3482. https://doi.org/10.3390/electronics14173482
Zhang X, Yu S. A Lightweight License Plate Recognition Method Based on YOLOv8. Electronics. 2025; 14(17):3482. https://doi.org/10.3390/electronics14173482
Chicago/Turabian StyleZhang, Xingwei, and Shenglin Yu. 2025. "A Lightweight License Plate Recognition Method Based on YOLOv8" Electronics 14, no. 17: 3482. https://doi.org/10.3390/electronics14173482
APA StyleZhang, X., & Yu, S. (2025). A Lightweight License Plate Recognition Method Based on YOLOv8. Electronics, 14(17), 3482. https://doi.org/10.3390/electronics14173482