A python program that uses concepts of image processing and OCR to identify the characters on a Nigerian license plate. The OCR aspect was done with machine learning.
- A GUI interface that makes image selection easier
- Performs all the stages of Automatic License plate recognition (ALPR); plate localization, character segmentation and character recognition
- Saves the license plate characters in the database
- You can generate your model that will be used by the ALPR
- You can compare the performance of supervised learning classifiers
- You can use your own training data
- Easy visualization for debugging purposes
The program was written with python 2.7 and the following python packages are required
- 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
- PyMysql A pure-python MYSQL client library
- wxpython Python GUI package
- Clone the repository or download the zip
git clone https://github.com/femidotexe/License-Plate-Recognition-Nigerian-vehicles
- Change to the cloned directory (or extracted directory)
- Create a virtual environment with virtualenv or virtualenvwrapper
- Install all the necessary dependencies by using pip
pip install -r requirements.txt
- Install wxpython with
pip install wxpython
- Start the program
python ALPR.py
- For Mac users, follow this wiki before you can use wxpython
- For windows users, you may need to install BLAS/LAPACK before you can install
scipy
- The script that retrieves plate number information was written by @othreecodes