Vehicle number plate detection using python
In this model we will be detecting a car in a live stream or video and recognize characters on the number plate of the car then furthermore we will use the characters and fetch the owner’s information using RTO API’s .
For the display, we will create a Web portal where all this information will be displayed (using HTML, CSS and JavaScript)
So let’s begin our Model implementation
We create a model which can detect the car in the live stream video or photo. For this, we have to create the large data-set of cars from which we train the model using Convolutional Neural Network
1. Train our Model
We have trained the model on the dataset to detect the characters in an image. this is needed since we are not detecting characters from strings but rather from images as number plates have slight variations too.
2. Passing The Video
When we pass the video as an argument to the model, the cv2 module goes through the video frame by frame and tries to find the characters in the image that are on the number plate until all the frames are completed, the for loop keeps on running so that model can keep detecting new and new number-plates.
3. Exceptions that may occur
There are chances that our model is unable to detect all the characters of the number-plate in one frame so I have put a constraint that if the characters are at least more than 6 then only we need to get the output. This is vital since it reduces the useless detection where we are not able to get the data of the complete number plate.