This project is an Automatic License Plate Recognition (ALPR) system that uses computer vision and the EasyOCR library to detect and read license plate numbers from video footage, and then saves the results into a CSV file. The system consists of four main files:
main.py
utils.py
add_missing_data.py
visualize.py
The dataset used in this project is here.
- Vehicle and License Plate Detection:
main.py
- Add Missing Data:
add_missing_data.py
- Visualize Results:
visualize.py
This is the main file of the project. It detects vehicles and license plates in the input video, uses functions from utils.py
for text extraction, and creates a CSV file with the results.
This file contains utility functions for the project, including functions for OCR (Optical Character Recognition) and license plate detection.
This file processes the initial CSV file created by main.py
to add any missing data that might have been missed in the initial detection phase.
This file processes the input video to create an output video with the detected license plates highlighted.
- Clone the repository:
git clone https://github.com/miteshgupta07/Automatic-Number-Plate-Recognition-System.git cd <repository-directory>
- Install the required libraries:
pip install -r requirements.txt
- Ensure you have the necessary video files in the correct directory.
- Run the main script:
python main.py
This will detect vehicles and license plates in the input video and create an initial CSV file with the results.
- Run the add_missing_data script:
python add_missing_data.py
This will process the initial CSV file to add any missing data.
-
Run the visualize script:
python visualize.py
This will process the input video and create an output video with the detected license plates highlighted.
This project was made possible by the use of a dataset from Roboflow. Their comprehensive and high-quality dataset greatly facilitated the development and testing of the license plate recognition system.
Feel free to submit issues or pull requests if you have any suggestions or improvements.
This project is licensed under the MIT LICENSE - see the LICENSE file for details.