Skip to content

License Plate Detection using YuNet is a Python project leveraging the LPD-YuNet model for accurate license plate detection. It employs OpenCV for computer vision, EasyOCR for OCR, and interacts with MySQL to store detected license plate information.

Notifications You must be signed in to change notification settings

abazure/License-Plate-Detection-with-YuNet

Repository files navigation

License Plate Detection with YuNet

License Plate Detection using YuNet is a Python project that leverages the LPD-YuNet model for accurate and efficient license plate detection in images. The project uses OpenCV for computer vision tasks, EasyOCR for Optical Character Recognition (OCR), and interacts with a MySQL database to store the detected license plate information

Please note that the model is trained with Chinese license plates, so the detection results of other license plates with this model may be limited.

Features

  1. LPD-YuNet Model: Utilizes the LPD-YuNet model for robust license plate detection.
  2. EasyOCR Integration: Integrates EasyOCR for accurate text extraction from license plates.
  3. MySQL Database: Stores detected license plate information in a MySQL database.
  4. Command-Line Interface (CLI): Provides a user-friendly CLI for easy interaction.
  5. Customizable Options: Allows users to specify input images, model paths, and saving options

How to Use

  1. Clone the repository:
git clone https://github.com/roniragilimankhoirul/License-Plate-Detection-with-YuNet.git && cd License-Plate-Detection-with-YuNet
  1. Create a virtual environment:
python -m venv myenv
  1. Activate the virtual environments:
source myenv/bin/activate
  1. Install Dependencies:
pip install -r requirements.txt
  1. Set up your environment by creating a .env file with the following variables:
DB_HOST=your_database_host
DB_USER=your_database_user
DB_PASSWORD=your_database_password
DB_NAME=your_database_name
  1. Run the image detection program:
python demo.py --input path/to/your/image.jpg -v
  1. Run the image detection program and save to database:
python demo.py --input path/to/your/image.jpg -v -s
  1. Run to see customizable options
python demo.py --help

Example outputs

lpd

About

License Plate Detection using YuNet is a Python project leveraging the LPD-YuNet model for accurate license plate detection. It employs OpenCV for computer vision, EasyOCR for OCR, and interacts with MySQL to store detected license plate information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages