Skip to content

LicensePlateReader is a Python-based tool that uses computer vision and the EasyOCR library to detect and extract license plate numbers from vehicle images.

License

Notifications You must be signed in to change notification settings

TudorCalinCS/LicensePlateReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LicensePlateReader

LicensePlateReader is a Python-based tool that uses computer vision and the EasyOCR library to detect and extract license plate numbers from vehicle images.

Features

  • 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.

Clone the repository

git clone https://github.com/TudorCalinCS/LicensePlateReader.git

Install the required dependencies

OpenCV:

pip install opencv-python

imutils:

pip install imutils

EasyOCR:

pip install easyocr

Usage

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.

Usage tips

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.

Testing

  • Navigate to the root directory of the project where the test.py file is located.

  • Run the following command in your terminal:

python test.py
  • The images used for tests can be found in the 'testPlates' folder.

Extensibility

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

LicensePlateReader is a Python-based tool that uses computer vision and the EasyOCR library to detect and extract license plate numbers from vehicle images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages