/automatic-vehicle-number-plate-recognition

Automatic vehicle number plate recognition

Primary LanguagePythonOtherNOASSERTION

LPR

License Plate Recognition System with Machine Learning in Python

Dependencies

  1. Numpy :Numpy is a python package that helps in handling n-dimensional arrays and matrices
  2. Scipy :Scipy for scientific python
  3. Scikit-image: Scikit-image is a package for image processing
  4. Scikit-learn Scikit-learn is for all machine learning operations
  5. Matplotlib Matplotlib is a 2D plotting library for python

How to Install

  1. Clone this Repository
  2. Go to the extracted folder
  3. Install all the necessary dependencies by using pip install -r requirements.txt

How to Run

For a better undestaing what's going on with these scripts follow this order

  1. python3 localization.py With this you can change the images in test folder and changing the line car_image = imread("test\car1.jpg", as_grey=True) with your own name. Functionality of this scipt is greyscale the picture given

  1. python3 cca2.py This script imports the previous one for getting the greyscale image. So this will open another window with previous result which can be commented if you don't need that

  1. python3 segmentation.py Number plate detection is made manually here. license_plate = np.invert(cca2.plate_like_objects[2]) However if the license plate is not detected you will have to change this index 2 to the licenseplate box number

  1. python3 machine_train.py Training process with data in the train folder is done with this script.

  1. python3 prediction.py Given image's (car1.jpg) License plate number will be visible in the terminal output in here

References

SQUARE
femioladeji

Any kind of contribution for this project is welcome.. :D

#happyCoding