LicensePlateReader is a Python-based tool that uses computer vision and the EasyOCR library to detect and extract license plate numbers from vehicle images.
- Utilizes computer vision techniques and the EasyOCR library for license plate recognition.
- Command-line interface for specifying image files or manually selecting them using a graphical file dialog.
- Detects and extracts license plate numbers from images.
- Supports various image formats, including JPEG, PNG, and others.
git clone https://github.com/TudorCalinCS/LicensePlateReader.git
OpenCV:
pip install opencv-python
imutils:
pip install imutils
EasyOCR:
pip install easyocr
Command-line Interface:
- Run the recognize_license_plate.py script with the desired image file as an argument:
python recognize_license_plate.py path/to/image.jpg
If no image file is provided, the script will prompt you to manually select an image using a graphical file dialog.
You can also use the recognize_license_plate() function directly in your Python code.
For best results and improved accuracy when using LicensePlateReader, consider the following:
- Use high-quality images with clear and well-lit license plates.
- Capture license plates at close distances and avoid capturing them at extreme angles.
- Ensure that the license plate is centered within the image frame.
-
Navigate to the root directory of the project where the
test.pyfile is located. -
Run the following command in your terminal:
python test.py
- The images used for tests can be found in the 'testPlates' folder.
LicensePlateReader is designed with extensibility in mind, making it easy to adapt for various use cases beyond simple license plate recognition. The project can be extended to suit specific requirements such as parking lot management, access control systems, and more.
This project is licensed under the MIT License - see the LICENSE file for details.