To extract the registration number of a car entering inside a parking lot.
command to test on an image : python Launch.py -i <path to the image> -s <specify if to save the intermediate results, True or False> -o <if want to save the intermediate results then specify the path to the folder where to keep them> -sh <Speficy if to see the intemediate results, True or False>
pip install pipenv
(then try typing pipenv in the terminal. If you get a list of options then it is successful)sudo pip install pipenv
pipenv shell
pipenv install
Set up is complete
command to test on live video : python Start.py
Then specify the path to the video file``
(This requires FFMPEG installed, if you don't have then don't worry another version for this functionality will be uploaded soon)
command to test on single image : python Launch.py -i <image_name> -s <True or False> -o <folder_name> -sh <True or False>
Run python Launch.py -h
to get this:
optional arguments:
A Demo for the working of the script is here
ANPR is an image-processing innovation which is used to perceive vehicles by their tags. This expertise is ahead of time ubiquity in security and traffic installation. Tag Recognition System is an application of PC vision. PC vision is a technique for using a PC to take out abnormal state information from a digital image. The useless homogeny among various tags for example, its dimension and the outline of the License Plate. The ALPR system consists of following steps:-
The ALPR system works in these strides, the initial step is the location of the vehicle and capturing a vehicle image of front or back perspective of the vehicle, the second step is the localization of Number Plate and then extraction of vehicle Number Plate is an image. The final stride use image segmentation strategy, for the segmentation a few techniques neural network, mathematical morphology, color analysis and histogram analysis. Segmentation is for individual character recognition. Optical Character Recognition (OCR) is one of the strategies to perceive the every character with the assistance of database stored for separate alphanumeric character.
Let ‘correct’ = (number of license plates correctly detected) Let ‘total images’ = total number of license plates.
Total images = 480
Accuracy = (correct * 100) / Total images
In this project we start with the process.py file that asks to input the name of the video file for which we want the prediction. This then breaks the video into frames and stores them in a folder name ‘data’. The we run our send each frame to the main.py which will return the predicted image and the cropped license plate from the frame. We have displayed a test run on a car image shown below.