Automatic License/Number Plate Recognition (ANPR) with Python

Jainsiddhant
2 min readJul 4, 2021

License Plate Recognition is an image-processing technology used to identify vehicles by their license plates. This technology is used in various security and traffic applications. I made this using simple Python code.

Steps involved in License Plate Recognition

  1. License Plate Detection: The first step is to detect the License plate from the car. We will use the contour option in OpenCV to detect for rectangular objects to find the number plate.

2. Character Segmentation: Once we have detected the License Plate we have to crop it out and save it as a new image. Again this can be done easily using OpenCV.

3. Character Recognition: Now, the new image that we obtained in the previous step is sure to have some characters (Numbers/Alphabets) written on it. So, we can perform OCR (Optical Character Recognition) on it to detect the number.

4. Putting the number on the webapp created : Once the recognition process is done , take the number and put on the webapp created to know the details about the vehicle such as owner name, model name, engine no. , registration and much more.

To know how to make html file and python cgi file refer to mu previous blog:

https://jainsiddhant603.medium.com/creating-web-application-for-docker-ea0387dc0ccf

To get all the source code for this project refer to the github link : https://github.com/siddhantjain603/task-8.git

Open for any Queries and Suggestions .

Thank you

--

--