Skip to content

Detect and scan the license plate number from vehicle images

Notifications You must be signed in to change notification settings

radioactive11/ALPR-India

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Automatic License Plate Recognition

Detect and scan license plate number from vehicle images

Table of Contents

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

  1. Make sure you have python3 setup on your system
  2. Clone the repo
git clone https://github.com/radioactive11/ALPR-India
  1. Install requirements
pip install -r requirements.txt
  1. Save test images to data/plates/

  2. Open terminal and enter

python3 plates.py
  1. Cropped images will be saved in cropped/
  2. Open terminal and enter
python3 ocr.py
  1. 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

product-screenshot1

Part 2: Using OCR to read the cropped license plates

product-screenshot2

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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 💙 for India

About

Detect and scan the license plate number from vehicle images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages