An Automatic License Plate Recognition System for Vietnamese Plates
This system can detect and recognize 2 types of license plate in Vietnam, rectangle plates and square plates.
- This system can detect and recognize license plates from images, videos and webcams.
- Within this project, the camera's position is fixed and only one car at a time can drive through the gate. Therefore, the system is only able to detect 1 plate per frame.
- Plate detection
- Sobel X for detecting vertical edges followed by a morphological transformation.
- Finding contours which satisfy the ratio of the plate to get the possible plates
- Checking for characters on the possible plates found to assure it is a license plate.
- Plate recognition
- For character recognition, I used MobileNet_v1_0.5_128 as it was lightweight and suitable for real-time recognition.
- python 3.6
- run
pip install -r requirements.txt
- run
test.py
for testing on a video. - run
test_image.py
for testing on an image.
- You should play with these parameters:
minPlateArea
,maxPlateArea
andksize
incv2.getStructuringElement
to implement successfully on your own case.