ML_Based_Number_Plate_Recognition_Model_using_Computer_Vision
ML_Based_Number_Plate_Recognition_Model_using_Computer_Vision
Abstract— In this research paper the Number Plate The primary objective of this research paper is to build
Recognition System (NPRS) is used which is one of the the number plate recognition model using YOLOv8 and
smartest and most high-tech detection systems. This is a system evaluate its accuracy for number plate recognition. The
of different technologies where an interface enables the system efficiency of the model will be gauged based on evaluation
to automatically detect and read the unique ID of a number parameters, and the dataset will be used to train the model
plate of vehicles from the real-time captured images. It is based on real scenarios to achieve maximum accuracy during
basically the process of extracting the pixel data from the testing.
digital images and converting it into ASCII values or the plain
text of the number plate. The system first detects the vehicle The project will focus on three primary objectives:
and then takes a real-time image of that vehicle. To get the detecting the number plate with more accuracy, detection
solution to this problem, a deep learning model known as YOU from various distances, and clarity in extracting numbers
ONLY LOOK ONCE (YOLO) and its latest version YOLOv8 using YOLOv8 modes and then achieving the highest
is used for detecting the license plates. This model’s main aim accuracy of the model by training it on the dataset. To
is to make use of different types of morphological operations so achieve these objectives, the model will be trained with more
that the specifically required number plate can be detected and datasets to improve its prediction accuracy. The model's real-
translated efficiently. Once we get the desired number plate, time performance in practical scenarios will also be
we can perform various important operations or tasks such as
considered to ensure its reliability and effectiveness.
checking it with the databases to check for stolen vehicles, for
tracking the vehicle’s movement, etc. It can help to improve Hardware specifications play a crucial role in the
public safety and enhance the efficiency of the transportation performance of an ML-based number plate recognition
system. model employing computer vision. It is recommended to use
a multi-core CPU with a minimum clock speed of 2.4 GHz, a
Keywords— NPRS, YOLOv8, high-tech detection system, dedicated graphics card, at least 16GB of RAM, and an SSD
real-time capturing, image processing, deep learning, with at least 256GB of space. Windows 10 or Linux is
morphological operations.
advised as the operating system.
2
Authorized licensed use limited to: BMS College of Engineering. Downloaded on June 03,2024 at 06:57:38 UTC from IEEE Xplore. Restrictions apply.
It offers a numbering scheme that takes location and region proposal network were used in the approach for
recognition into account [10]. Artificial intelligence can be identifying car license plates described by K. Nishimura et
used to address the issue of losing your mouse. The text al. (2020). (RPN). Using a dataset of Japanese license plates,
recognition accuracy will increase once the location has been the suggested approach had a 98.3% accuracy rate [17]. A
determined. The use of artificial intelligence will be used to complete deep learning system for recognizing license plates
train the location and recognition systems. The Tesseract- that uses a thin network architecture for efficient inference
OCR system will be used to perform the recognition after the on mobile devices was presented by Y. Cai et al. in 2021, the
localization system has been trained using the YOLOv5 suggested model had a 97.53% accuracy rate when applied to
network. Number tracking is the first application of the dataset of Chinese license plates [17].
YOLOv5 [10].
Convolutional neural networks (CNNs) and optical
In this, we propose an analysis effect on the reinnervation character recognition (OCR) methods were proposed by A.
of the recognition pattern of the plaque and the deep nervous K. Awasthi et al. in 2020 for a license plate recognition
system using the Brazilian synthetic tile image database for system, the system's accuracy on a dataset of Indian license
object detection numbers [11]. Variations in rotation, size, plates was 96.2% [18]. A unique method for license plate
and volume are used in the suggested data set to evaluate identification and recognition based on a two-stage deep
hardness. As a result, the effect of using artificial tile shapes learning model was proposed by M. Shareman et al. in 2020.
on the accuracy of the system responsible for locating and The license plate region is in the first stage, and the
classifying real tile symbols and their recognition was characters are in the second stage. When applied to a dataset
evaluated in experiments carried out at three stages: of Iranian license plates, the suggested model had an
character segmentation, letter recognition, and number accuracy of 97.34% [18].
recognition (2.54%, 1.09%, and 2.49%, respectively). It is
only possible to achieve the digit recognition step with III. PROPOSED SYSTEM
62.47% accuracy using a trained neural network that has
been tested on real plates and with synthetic data [11]. The proposed model uses YOLOv8, trained on a
customized dataset, to detect number plates on vehicles. It is
The paper provides a thorough analysis of the most designed to handle increasing vehicle counts and improve
recent advancements and strategies in Automatic Number traffic management. The model is trained to recognize
Plate Recognition (ANPR) [13]. Computer vision (CV) number plates in diverse conditions and is deployed in a real-
systems are among the several algorithms that have been time system. Additional techniques like data augmentation
thoroughly compared and evaluated in real-time. ANPR and transfer learning enhance accuracy. The model's
technology employs recognition techniques to detect and effectiveness is evaluated using precision, recall, and mAP. It
identify traffic signs. Even with the greatest algorithm, using enables tasks such as automated toll collection, parking
an ANPR system may need additional hardware to produce management, law enforcement support, and traffic analysis.
more accurate results. Continuous monitoring and occasional retraining ensure
optimal performance in changing conditions.
In 2019, S. J. Kim et al. introduced the dual attention
network, a deep neural network with a unique design for
recognizing license plates (DAN) [15]. To increase
recognition accuracy, the DAN model employs two different
kinds of attention processes. An accuracy of 98.37% was
attained by the suggested model using a dataset of Korean
license plates [15].
The OCR approaches, which are prone to misalignment
and a variety of sizes, were first recognized by Muhammad
Tahir Qadri [16]. His modification can be utilized to improve
real-time OCR identification from varied sizes and angles. A
pre-programmed mechanism for detecting and identifying
vehicles using their license plates is displayed. a synthesis of Fig. 1. Flowchart for the Proposed System
the model's image processing methods for locating and
identifying the vehicle in the system's databases. S.Kranthi A. Image Acquisition
and K.Pranathin have proposed Automated License/Number
Plate Detection/Recognition (ANPR) as a method for A vital first step in creating a computer vision-based ML
identifying a vehicle's image and verifying its number plate model for number plate identification is image capture. This
number. ANPR is used to display vehicles that may be stolen involves collecting pictures of license plates through
or involved in criminal activity. Using ANPR is a simple scanners and cameras, among other sources. The correctness
method to spot a stolen car on the road, in a parking lot, or at of the model is significantly influenced by the clarity and
a traffic light. The project "Automatic Vehicle Number Plate resolution of the recorded photos. To increase the quality of
Recognition System Using Machine Learning" is the focus the captured photos, pre-processing techniques including
of this entire section. noise reduction, contrast enhancement, and image
segmentation can be used. The algorithm may also be
Many applications, including toll-collecting systems, accurately trained to recognize number plates using a sizable
parking management, and law enforcement, have made dataset of labeled photos. The model can work in real-world
extensive use of number plate recognition (NPR) models circumstances and achieve high identification rates thanks to
[17]. Some recent research on NPR models will be covered the application of computer vision algorithms during picture
in this literature review. Deep neural networks (DNNs) and a gathering.
3
Authorized licensed use limited to: BMS College of Engineering. Downloaded on June 03,2024 at 06:57:38 UTC from IEEE Xplore. Restrictions apply.
B. Vehicle Detection morphological procedures. Once the ROI has been located, it
An ML-based number plate recognition model may be cropped and treated to enhance the image's quality.
employing computer vision must include vehicle detection. It Since improper localization can lead to false positives or
includes applying object identification techniques i.e., YOLO missing detections, it has a significant influence on the
to recognize and locate automobiles in an image or video model's performance. The model can successfully identify
stream. The model may then concentrate on the areas of and recognize number plates in a variety of situations, such
interest (ROIs) corresponding to the number plates for as poor light or high-speed settings, by applying computer
additional processing after the cars have been identified. This vision algorithms for number plate localization.
method shortens the processing time while simultaneously
increasing the model's accuracy. The number plate
recognition model can successfully identify license plates in
various detection situations, including parking lots, freeways,
and toll booths, by including vehicle detection.
C. Dataset Preparation
The creation of the dataset is a crucial stage in the IV. RESULT
development of a computer vision-based ML model for The accuracy of the YOLOv8 is 97.2%, which is a good
number plate recognition. It entails gathering a sizable and score and the highest of all the other YOLO models.
varied collection of number plate-labeled photos. The dataset Therefore, we have proven to be the best model for the
should include a range of situations, lighting settings, and detection of number plates and vehicle detection as
font, color, and size variants. To prevent false positives, the compared to the other YOLO models. At first, the camera
collection should contain pictures of cars with and without will be used to capture images. Then the model will perform
license plates. To expand the dataset's size and variety, data the preprocessing, training, detection, validation, inference,
augmentation techniques including flipping, rotating, and and evaluation of the dataset. Based upon all these processes
scaling might be used. When the dataset is ready, it may be the model is trained. After training the model, it is tested on
divided into training, validation, and testing sets for the the test dataset. Finally, the number plates are detected for
creation and assessment of the model. For the purpose of real-time image capturing through the camera. The last
creating a reliable and accurate number plate recognition recorded information will be displayed on the screen.
model, a well-prepared dataset is essential.
4
Authorized licensed use limited to: BMS College of Engineering. Downloaded on June 03,2024 at 06:57:38 UTC from IEEE Xplore. Restrictions apply.
TABLE I. TABULAR REPRESENTATION OF THE ACCURACY,
PRECISION AND RECALL ACHIEVED AFTER TRAINING AND
TESTING OF THE YOLOV8 MODEL ON THE CUSTOM DATASET
YOLO Parameters
Models Accuracy Precision Recall
YOLOv8 97.2% 97.6% 94.5%
V. CONCLUSION
We propose a number plate recognition model using the
Fig. 6. Class Loss Graph for the Trained Model
YOLOv8 model for vehicle number plate recognition and
using our custom dataset of number plates. We have trained
our dataset using the YOLOv8 model, this model can detect
multiple cars and number plates in a single frame. The results
shown in this paper are achieved with higher accuracy as
compared to other ANPR, KNN, and CNN models.
REFERENCES
[1] Yousri Kessentinia, Mohamed Dhia Besbes, Sourour Ammar, Achraf
Chabbouh, “A Two-Stage Deep Neural Network for Multi-norm
License Plate Detection and Recognition”.
[2] Salah Alghyaline, The World Islamic Sciences and Education
University, “Real-time Jordanian license plate recognition using deep
learning”, Faculty of Information Technology, Department of
Computer Science, Tabarbour, Amman, Jordan.
[3] Rayson Laroca, Evair Severo, Luiz A. Zanlorensi, Luiz S. Oliveira,
Gabriel Resende Gonc¸alves, William Robson Schwartz and David
Menotti, “A Robust Real-Time Automatic License Plate Recognition
Based on the YOLO Detector”.
[4] Di Zang, Zhenliang Chai, Junqi Zhang, Dongdong Zhang and Jiujun
Cheng, “Vehicle license plate recognition using visual attention
model and deep learning”, Journal of Electronic Imaging 24(3),
033001 (May⁄Jun 2015).
Fig. 7. Object Loss Graph of the Trained Model [5] Ali Tourani, Asadollah Shahbahrami, Sajjad Soroori, Saeed Khazaee,
And Ching Yee Suen, “A Robust Deep Learning Approach for
5
Authorized licensed use limited to: BMS College of Engineering. Downloaded on June 03,2024 at 06:57:38 UTC from IEEE Xplore. Restrictions apply.
Automatic Iranian Vehicle License Plate Detection and Recognition [12] Irfan Kilic, Galip Aydin, “Turkish Vehicle License Plate Recognition
for Surveillance Systems”, (Life Fellow, Ieee) Using Deep Learning”, Department of Computer Engineering Firat
[6] Sergey Zherzdev, Alexey Gruzdev, “LPRNet: License Plate University Elazig, Turkey · Conference Paper · September 2018 DOI:
Recognition via Deep Neural Networks”. 10.1109/IDAP.2018.8620744
[7] Zied Selmi, Mohamed Ben Halima, Adel M. Alimi, “Deep Learning [13] Lubna; Mufti, N.; Shah, S.A.A. Automatic Number Plate
System for Automatic License Plate Detection and Recognition”, Recognition: A Detailed Survey of Relevant Algorithms. Sensors
Conference Paper · November 2017 DOI: 2021, 21, 3028
10.1109/ICDAR.2017.187 2017 14th IAPR International Conference [14] Wang, H.; Li, Y.; Dang, L.-M.; Moon, H. Robust Korean License
on Document Analysis and Recognition. Plate Recognition Based on Deep Neural Networks. Sensors 2021, 21,
[8] Wang Weihong and Tu Jiaoyang, “Research on License Plate 4140
Recognition Algorithms Based on Deep Learning in Complex [15] Jing Han 1.; Jian Yao.; Jiao Zhao.; Jingmin Tu.; Yahui Liu. Multi-
Environment”, Received March 15, 2020, accepted April 27, 2020, Oriented and Scale-Invariant License Plate Detection Based on
date of publication May 14, 2020, date of current version May 28, Convolutional Neural Networks. Sensors 2019, 19, 1175
2020. Digital Object Identifier 10.1109/ACCESS.2020.2994287. [16] J M S V Ravi Kumar et al 2021 IOP Conf. Ser.: Mater. Sci. Eng.
[9] Gabriel Resende Gonçalves “License Plate Recognition based on 1074 012012
Temporal Redundancy” Belo Horizonte Agosto de 2016. [17] V Gnanaprakash et al 2021 IOP Conf. Ser.: Mater. Sci. Eng. 1084
[10] Yu-Liang Chiang, University of Wisconsin-Milwaukee, “Real Time 012027
License Plate Detection Based on Machine Learning”, May 2021. [18] J.M Mossi, L Sanchis, and A. Albiol, "The Detection of the Parked
[11] Saulo Cardoso Barreto, Jorge Albuquerque Lambert and Fl´avio de Vehicles Using the Spatiotemporal Maps", The IEEE Transactions on
Barros VidalChapter, “Using Synthetic Images for Deep Learning the Intelligent Transportation Systems, vol.12, no.4, pp. 1277-1291,
Recognition Process on Automatic License Plate Recognition”, May 2011.
2019 · DOI: 10.1007/978-3-030-21077-9_11
6
Authorized licensed use limited to: BMS College of Engineering. Downloaded on June 03,2024 at 06:57:38 UTC from IEEE Xplore. Restrictions apply.