Automatic License Plate Recognition
Detect and scan license plate number from vehicle images
Table of Contents
- Table of Contents
- About The Project
- Built With
- Getting Started
- Usage
- Product Screenshot
- Roadmap
- Contributing
- License
- Contact
About The Project
ALPR for India detects license plates from images of vehicles and converts license plate numbers to strings. This can be used by law enforcement vehicles to scan, in real time, vehicle insurance expiry, pollution check certificate validation, and possible blacklisted vehicles on road
The model was trained using YoloV4 on 2000 car images from Google Open Image Dataset
I used the OIDv4 Tool Kit to fetch the images along with thier labels.
Built With
Getting Started
This application is targetted for windows and will work on other operating systems with some slight modifications. You will need:
- Python (>=3.6)
- OpenCV(>=4.0)
- pyTesseract (installed in "C:\Program Files\Tesseract-OCR\tesseract.exe")
To get a local copy up and running follow these simple example steps.
Installation
- Make sure you have python3 setup on your system
- Clone the repo
git clone https://github.com/radioactive11/ALPR-India
- Install requirements
pip install -r requirements.txt
-
Save test images to
data/plates/
-
Open terminal and enter
python3 plates.py
- Cropped images will be saved in
cropped/
- Open terminal and enter
python3 ocr.py
- Press any key to move on to the next image
Usage
This application can be used to
-
search for stolen cars
-
check if vehicle on road has insuarance
-
check if vehicle has active & valid pollution certificate
-
check if vehicle is blacklisted
-
retrieve owner name & contact information in case of accident
All these features are possible if we search the License Plate Number in the database on vahaan.nic.in
Product Screenshot
Part 1: Cropping license plates from the entire image
Part 2: Using OCR to read the cropped license plates
Roadmap
See the open issues for a list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Arijit Roy - @this_is_radioactive11
Project Link: https://github.com/radioactive11/ALPR-India
Made with