/License-Plate-Recognition

This project is a simple license plate detection system implemented in Python using OpenCV, EasyOCR, and Matplotlib libraries.

Primary LanguageJupyter NotebookOtherNOASSERTION

License Plate Detection Project

This project is a simple license plate detection system implemented in Python using OpenCV, EasyOCR, and Matplotlib libraries.

Introduction

The goal of this project is to develop a system that can detect license plates in images and extract the license plate numbers from the detected plates. The system uses computer vision techniques for image processing and optical character recognition (OCR) for extracting text from the detected license plates.

Prerequisites

You need to have the following libraries installed in your Python environment to run this project:

  • OpenCV
  • EasyOCR
  • Matplotlib

You can install these libraries using pip:

pip install opencv-python
pip install easyocr
pip install matplotlib

Usage

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/license-plate-detection.git
  2. Navigate to the project directory:

    cd license-plate-detection
  3. Run the main Python script:

    python license_plate_detection.py
  4. The script will process the input image, detect license plates, and display the result with the extracted plate numbers.

Workflow

  1. Image Input: The system takes an input image containing vehicles with license plates.

  2. License Plate Detection: OpenCV is used to detect the location of license plates within the image using image processing techniques such as edge detection and contour analysis.

  3. License Plate Recognition: EasyOCR is employed to recognize and extract the text from the detected license plates.

  4. Result Visualization: Matplotlib is used to visualize the original image with the detected license plates and the extracted license plate numbers.

File Structure

  • license_plate_detection.py: Main Python script for the license plate detection system.
  • input_image.jpg: Sample input image for testing the system.

Acknowledgements

  • OpenCV: Open Source Computer Vision Library
  • EasyOCR: Ready-to-Use OCR with 40+ languages supported
  • Matplotlib: Python plotting library

License

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

Contributing

Feel free to contribute to this project by forking the repository and submitting a pull request. Any suggestions and improvements are welcome.