Skip to content

maithilimukherjee/license-plate-recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Plate Recognition (LPR) System

Overview

This project implements a License Plate Recognition (LPR) system using classical computer vision techniques and OCR. It detects vehicle license plates from images, segments individual characters, and recognizes the plate number using Tesseract OCR.

The system demonstrates an end-to-end pipeline for traffic management and vehicle monitoring applications.


Features

  • License Plate Detection: Detects rectangular license plates using edge detection and contour analysis.
  • Character Segmentation: Extracts individual characters from detected plates using thresholding and morphological operations.
  • Character Recognition: Recognizes segmented characters using Tesseract OCR with alphanumeric whitelist.
  • End-to-End Pipeline: Integrates detection, segmentation, and recognition for automated plate reading.
  • Visualization: Optional visualization of detected plates and segmented characters for debugging and demonstration.

Installation

  1. Clone the repository:
git clone <repo_link>
cd lpr
  1. Install dependencies:
pip install opencv-python numpy pytesseract
  1. Tesseract OCR: Download and install Tesseract OCR and set the path in char_recognition.py:
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"
  1. Run the full pipeline on your dataset:
python main.py

Detected plate numbers will be printed in the console.


Dataset: https://www.kaggle.com/datasets/andrewmvd/car-plate-detection

About

A modular, extensible license plate detection and recognition project. Detects license plates in images/videos and recognizes the characters on the plates using deep learning and classical CV techniques.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages