Vehicle and License Plate Recognition with Novel Dataset for Toll Collection

Muhammad Usama,Hafeez Anwar,Abbas Anwar,Saeed Anwar
DOI: https://doi.org/10.48550/arXiv.2202.05631
2022-11-15
Abstract:We propose an automatic framework for toll collection, consisting of three steps: vehicle type recognition, license plate localization, and reading. However, each of the three steps becomes non-trivial due to image variations caused by several factors. The traditional vehicle decorations on the front cause variations among vehicles of the same type. These decorations make license plate localization and recognition difficult due to severe background clutter and partial occlusions. Likewise, on most vehicles, specifically trucks, the position of the license plate is not consistent. Lastly, for license plate reading, the variations are induced by non-uniform font styles, sizes, and partially occluded letters and numbers. Our proposed framework takes advantage of both data availability and performance evaluation of the backbone deep learning architectures. We gather a novel dataset, \emph{Diverse Vehicle and License Plates Dataset (DVLPD)}, consisting of 10k images belonging to six vehicle types. Each image is then manually annotated for vehicle type, license plate, and its characters and digits. For each of the three tasks, we evaluate You Only Look Once (YOLO)v2, YOLOv3, YOLOv4, and FasterRCNN. For real-time implementation on a Raspberry Pi, we evaluate the lighter versions of YOLO named Tiny YOLOv3 and Tiny YOLOv4. The best Mean Average Precision (mAP@0.5) of 98.8% for vehicle type recognition, 98.5% for license plate detection, and 98.3% for license plate reading is achieved by YOLOv4, while its lighter version, i.e., Tiny YOLOv4 obtained a mAP of 97.1%, 97.4%, and 93.7% on vehicle type recognition, license plate detection, and license plate reading, respectively. The dataset and the training codes are available at <a class="link-external link-https" href="https://github.com/usama-x930/VT-LPR" rel="external noopener nofollow">this https URL</a>
Image and Video Processing,Artificial Intelligence,Computer Vision and Pattern Recognition
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: in the automatic vehicle toll collection system, how to accurately identify vehicle types and license plate information. Specifically, the author proposes an image - based automated framework for vehicle toll calculation, which consists of three steps: vehicle type identification, license plate location, and license plate character recognition. ### Problem Background and Challenges 1. **Vehicle Decoration and Cluttered Background** - Traditional decorations on the front of vehicles (such as stickers, logos, etc.) lead to large differences among vehicles of the same type. - These decorations increase background clutter, making license plate location and recognition more difficult. 2. **Inconsistent License Plate Positions** - Especially for large vehicles such as trucks, the position of the license plate is not fixed, which complicates license plate detection. 3. **Multiple License Plate Problem** - Some vehicles have multiple license plates, one on the front of the vehicle and another inside the windshield, increasing the recognition difficulty. 4. **Font and Character Variations** - The license plate fonts, sizes, and styles used by different vehicles are not uniform, and some characters may be occluded or damaged. 5. **Environmental Factors** - Environmental factors such as dust and mud may cause partial occlusion or damage to the license plate, further increasing the recognition difficulty. ### Solutions To solve the above problems, the author proposes the following solutions: 1. **Construct a New Dataset** - Collected a new dataset (Diverse Vehicle and License Plates Dataset, DVLPD) containing 10,000 images, covering six different types of vehicles, and made detailed annotations for each image. 2. **Step - by - Step Processing Framework** - **Vehicle Type Identification**: Use deep learning models such as YOLOv4 to classify vehicle types. - **License Plate Location**: Detect and locate the license plate area in the same image. - **License Plate Character Recognition**: Recognize the characters of the located license plate and read the characters and numbers on the license plate. 3. **Model Evaluation and Optimization** - Evaluated multiple object detection models (such as YOLOv2, YOLOv3, YOLOv4, Faster R - CNN) and selected the model with the best performance. - For real - time applications, also evaluated the lightweight versions of YOLO (Tiny YOLOv3, Tiny YOLOv4) and carried out deployment tests on Raspberry Pi. ### Main Contributions 1. Constructed a large - scale and diverse vehicle and license plate dataset. 2. Proposed a three - step image processing framework for vehicle type identification, license plate location, and character recognition respectively. 3. Conducted extensive evaluations on multiple deep learning models and provided detailed performance comparisons. 4. Implemented an IoT - based real - time solution and deployed it on Raspberry Pi. Through these methods, the author successfully solved the key problems in the automatic vehicle toll collection system and improved the accuracy and robustness of the system.