The rise in toll road usage has sparked a lot of interest in the newest, most effective, and most innovative intelligent transportation system (ITS), such as the Vehicle License Plate Recognition (VLPR) approach. This research uses Convolutional Neural Networks to deliver effective deep learning principally based on Automatic License Plate Recognition (ALPR) for detection and recognition of numerous License Plates (LPs) (CNN). Two fully convolutional one-stage object detectors are utilized in ALPRNet to concurrently identify and categorize LPs and characters, followed by an assembly module that outputs the LP strings. Object detectors are typically employed in CNN-based approaches such as You Only Look Once (YOLO), Faster Region-based Convolutional Neural Network (Faster R-CNN), and Mask Region-based Convolutional Neural Network (Mask R-CNN) to locate LPs. The VLPR model is used here to detect license plates using You Only Look Once (YOLO) and to recognize characters in license plates using Optical Character Recognition (OCR). Unlike existing methods, which treat license plate detection and recognition as two independent problems to be solved one at a time, the proposed method accomplishes both goals using a single network. Matlab R2020a was used as a tool.
Keywords: Intelligent Transportation system; Vehicle License Plate; Recognition; Convolutional Neural Network; You Only Look Once; Optical Character Recognition
Received: Jul 12, 2022 · Revised: Jul 20, 2022 · Accepted: Sep 8, 2022 · Published: 2022-09-25
Corresponding author: Venkatanaresh M, [email protected]
This is an open access article under the CC BY 4.0 license.
How to cite: Venkatanaresh M, V. Roshini, N. Harshitha, "Recognition and Detection of Vehicle License Plates Using Convolutional Neural Networks," International Journal of Engineering and Applied Physics, vol. 2, no. 3, pp. 535–542, 2022.
An automobile registration plate, also known as a number plate in the UK, a license plate in the US, or a license plate in Canada, is a metal or plastic plate that is attached to a motor vehicle or trailer for the purpose of official identification [1-3]. Avenue motors, which include automobiles, trucks, and motorbikes, are required to have registration plates in all worldwide places. In the car register of the issuing region, the registration identification-which may be numeric or alphanumeric-uniquely identifies a vehicle or its owner. In certain foreign locations, the identifier is unique to the entire country, whereas in others, it is unique to a single state or province and digital license plates are also available. All motorized autos on Indian roadways must be registered with the RTO and have a license plate, according to The Motor Vehicles Act, 1988. (Number plate). There are numerous varieties of license plates in India. Unregistered vehicles are in direct violation of the law and may face severe penalties. A registration number is formed by a combination of alphabets and digits on a license plate. The registration code is obtained from the district RTO (Regional Transport Office) and must be displayed on both the front and rear of the vehicle with provision. For the purpose of illuminating India's international license plate is IND. The first two letters on a number plate (DL, KL, HR, MH, etc.) indicate where the vehicle is registered. The initials CG will appear on a vehicle registered with the Chhattisgarh RTO. The next digits indicate the district in which the vehicle is registered. The third section of the license plate consists of a set of numbers (usually four) that are unique to the vehicle. Vanity numbers, like as 0001, 0786, and 1111, appear to be VIP numbers and can be sold in RTO auctions for top dollar. The remaining portion of the registration code displays the India IND global license plate.
The Block Diagram of Existing Method is shown in figure 1. License plate recognition is a method for automatically finding and extracting license Plate Information. (LPR).

License plate detection is the most important stage of the LPR system. Most algorithms for detecting license plates can only be used under certain circumstances, such as fixed backdrops, known colors, and fixed license plate sizes. This algorithm is built around the detection step, which determines the zone. The system processes the acquired image in order to identify the license plate, and the result is based on geometrical features and mathematical morphological techniques. The license plate photos are generated from the vehicle images that were taken using a variety of backgrounds, lighting, licence plate orientations, camera distances from the vehicles, light conditions, and vehicle sizes and types [4-6].
An image undergoes pre-processing to enhance its quality, which involves converting the image to grayscale and smoothing it. The pre-processing section processed images captured by the camera. These images are fed into the license plate detection module. The pre-processing output is provided to another module for rectangle detection; But the system has stated that it will test several levels to find rectangles in photographs, and if level is zero, the image will be passed to the canny edge detector and converted to an edge image. We used mathematical morphology to the image once it was converted to the edge. The image is first dilated to strengthen the edges and fill in any gaps between the lines, and then it is eroded to eliminate the excess thickness from the edge image and distinguish the desired edges from the undesired edges, which might influence overall detection performance.
Finally, the image is subjected to closure morphology to fill in gaps in the regions while retaining region sizes. In contrast, the system employs binary thresholding if the level is higher than zero, rather than the smart and morphological operators to select a probable plate region. Each closed morphological and threshold picture is subjected to a contour procedure in order to identify the quadrilateral with four vertices. The system further assessed the discovered candidate by examining the angle, which should roughly equal 90 degrees, in order to constrain the quadrilateral to be more precisely a rectangle derived using the contour technique to segregate the region. and additionally, some incorrect regions were also found. In order to filter out candidates who provided misleading information, a mechanism was put in place to assess whether a candidate was a valid or not.
Disadvantages of existing method
• Segmentation / Detection of license plate is not up to level best.
• There is no feature of character segmentation.
• There is no feature of character recognition.
• Not fit for all conditions (depends on environment light).
The Block Diagram of proposed Method is shown in figure 2.

In this proposed method, VLPR based YOLOv2 algorithm is employed. Hovering over each block in the display in YOLOv2 reveals the specifics of that block. Except for the final Convolution block, each Convolution block features Batch Norm normalization followed by Leaky ReLU activation. By using an S*S grid, YOLO divides the source image. In each grid cell, a single object is expected.
Each grid cell is anticipated to have a specific number of border boxes. The one-object rule, on the other hand, limits how near detected items can be. No matter how many boundary boxes are used, it only detects one object, forecasts conditional class probabilities, and forecasts boundary boxes for each grid cell with a single box confidence score. The boundary boxes' box confidence score infers how precise each boundary box is. The image's width and height are used to normalize the bounding box's dimensions [7-9].
The class confidence score is computed as follows for each prediction box:
It assesses the accuracy of both categorization and localization (where an object is located).
box confidence score ≡ Pr(object). IoU (1) conditional class probability ≡ Pr (class | object) (2) class confidence score ≡ Pr(class).IoU
≡ box confidence score * conditional class probability (3) where,
Pr(object) is the likelihood that an object is in the box.
IoU stands for the intersection over union of the anticipated box and the actual data.
Pr (class | object) is the probability that the object belongs to class conditioned on an object.
Pr(class) is the probability that the object belongs to class.
Every grid cell, YOLO predicts numerous bounding boxes. To determine the actual positive's loss, it is necessary for one of them to be in charge of the object. For this reason, choose the one that has the highest IoU with the actual data. The bounding box forecasts get more specialized as a result of this method. The ability to predict specific sizes and aspect ratios gets better with each forecast.
The sum-squared error analyzed by YOLO between the forecasts and the actual data to determine loss. The components of the loss function are as follows:
1.The loss of classification.
2.Localization loss (errors between ground truth and the predicted boundary box).
3.The confidence loss (the objectness of the box).
If an item is detected, each cell classification loss equals the squared error of the class conditional probability for each class.

=1 if an object appears in cell I, otherwise 0.
denotes the conditional class probability for class c in cell i.
The localization loss is used to determine how inaccurately border box locations and sizes are predicted. The only box that counts is responsible for finding the object.



=1 if the j th boundary box in cell I is responsible for detecting the object, otherwise 0.
λcoord increase the weight for the loss in the boundary box coordinates.
As a result, absolute inaccuracies in large and small boxes are not divided proportionally. A 2- pixel error in a large box is equivalent to a 2-pixel error in a small box. To address this, instead of predicting the width and height of the bounding box, YOLO predicts its square root. In addition, we double the loss by cord to emphasize the precision of the border box (default: 5).
A Convolutional Neural Network is a type of neural network with one or more convolutional layers that is frequently used for auto-correlated data processing, segmentation and classification. Thus, every convolutional layer employs a collection of filters denoted as convolutional kernels. The filter is a subset of the input pixel values that is applied to a matrix of integers of the same size as the kernel. For simplicity, each pixel is multiplied by the kernel's corresponding value, and the result is added together to form a grid cell [10-12], Each convolution is a linear transformation that resembles an affine function. Three-channel RGB images are widely used as the input for computer vision. For the sake of simplicity, take into account a grayscale image with a single channel and a 3x3 convolutional kernel. The kernel slides/scans across the starting rows of the matrix holding the picture pixel values as it goes horizontally, column by column, across the input matrix of integers. The kernel then descends vertically to the next rows. After the input has been fed into the model, the output from each layer is then obtained. This is referred to as feedforward. The error is then calculated using an error function. After that, the derivatives are computed and back-propagated into the model. This process is known as "backpropagation", which is used to minimize the loss.
Global thresholding binary approaches, such as Otsu and average grayscale value, uses a histogram that shows a bi-modal pattern of images to help differentiate the target and background [13-15], which produce the best results when used with the BA (Bensen Algorithm), Since noise and other sources are present in real-world photos, the picture histogram was unable to construct a bimodal pattern. At this stage, traditional binary models are unable to produce the desirable results. Local threshold techniques, such as the (BA) and the Niblack technique, are commonly used to detect important interference in a picture. The BA, which is the local binary model's optimal output, is typically the best way to deal with the problem of inadequate illumination.
OCR technology converts any image containing written text, whether it is typed, printed or handwritten into text data that computers can understand.
Training, validation, and testing are the three processes that make up the real AI training phase. In order to provide a certain forecast with each cycle, the computer system is trained by being fed data. To ensure that the predictions get better with each training stage, the parameters can be changed. The technique is then verified by contrasting the validation data with the training model [16-20]. It could now be necessary to change new variables. Following the validation phase, the device can be examined using real-world information devoid of tags or labels. Checking if the algorithm is prepared for usage at this point is important. Training of license plate images is depicted in figure 3.

Figure 4 shows the layers of the proposed model.

Linear Unit, Max and Average Pooling Layers, and finally classification layer of Convolutional Neural Networks [21-26]. The classification layer's training network makes use of the values from the softmax function.
• Fast. It is suitable for real-time processing.
• A single network produces predictions (object locations and classes). Accuracy can be improved through end-to-end training.
• The more general word is "YOLO." It outperforms earlier methods when extrapolating from natural photographs to different fields. Approaches for limiting the classifier to a certain region are available. In order to forecast limits, YOLO uses the whole image. With the new information, YOLO produces fewer false positives in the background.
• One item is detected by YOLO per grid cell. In creating forecasts, it imposes spatial variety.
In this research, to improve appearance of the license plate, a deep learning technique CNN, YOLO, OCR are employed. The models are then assessed against the validation set in order to identify the best model. After much improvement and validation, testing data comes into play. However, the test set is used to assess how effectively the final model generalizes to fresh, unreported data. The existing and proposed model results are shown below from figure 5 to figure 13.
Existing Method Proposed Method





A deep learning technique for the effective detection and recognition of License Plates is utilized. For this model, CNN and YOLO are used for the detection of license plates and OCR for character recognition on license plates. Experimental findings demonstrate that our planned model correctly recognizes the number plate region from an image, and provides sophisticated results compared to existing work.
In the future, results of the OCR phase (improving character recognition) can be improved, and also this concept of classifying can be extended to whether the vehicle is stolen or not/authorized or not using deep learning techniques.