License Plate Recognition System with Machine Learning in Python
- Numpy :Numpy is a python package that helps in handling n-dimensional arrays and matrices
- Scipy :Scipy for scientific python
- Scikit-image: Scikit-image is a package for image processing
- Scikit-learn Scikit-learn is for all machine learning operations
- Matplotlib Matplotlib is a 2D plotting library for python
- Clone this Repository
- Go to the extracted folder
- Install all the necessary dependencies by using
pip install -r requirements.txt
python3 localization.py
With this you can change the images in test folder and changing the linecar_image = imread("test\car1.jpg", as_grey=True)
with your own name. Functionality of this scipt is greyscale the picture given
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
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
python3 machine_train.py
Training process with data in the train folder is done with this script.
python3 prediction.py
Given image's (car1.jpg) License plate number will be visible in the terminal output in here
#happyCoding