VEHICLES NUMBER PLATE DETECTION

Dharmika D
2 min readAug 12, 2021

--

The system of vehicle number plate detection and recognition is used to detect the plates then make the recognition of the plate that is to extract the text from an image. Massive integration of information technologies had lead to an intelligent system which can detect and read license plates.

With the knowledge in Computer Vision , I have bulit a model that would detect the text on number plate of a vehicle. Here I took vehicle as a car.

The libraries and modules used to build this model:

→cv2

→matplotlib

→numpy

→imutils

→easyocr

→selenium

→time

→Your favorite Browser Driver for selenium

Note: if you don’t have any library , you can install them using “pip “ command. Example: pip install numpy

Now getting into the procedure:

Step1: detecting vehicle

Here I did for a specific vehicle i.e cars by using the haarcascade of cars.xml you can find easily on kaggle.com ,for other vehicles you can search on your favorite browser for cascade models.

Step 2: Image Processing For Number Plate Number Fetching

→we will first convert the image to gray scale to get maximum amount of edge detection.

→find the area where the number plate can be found on the car ,as the number plates in car are mainly in rectangle we will use canny for edge detection and finding the contours.

→then by using cv2.putText() we will print the number of car on the picture

detecting the vehicle
converting it into gray scale
detecting the number plate and identifying the car

Step 3 Using Selenium to automatically sending data to data fetching websites

information of car is gained

CODE AVAILABLE IN GITHUB

GITHUB LINK: https://github.com/Dharmika228/Number-plate_detection

tHIS TASK IS DONE UNDER GUIDANCE OF MY MENTOR MR.VIMAL DAGA SIR.

THANK YOU !!😊

--

--