vn33 / IndianVehicleLicensePlateDetection-using-Yolov8-and-EasyOCR

This project aims to detect vehicles and read license plates from video footage. It leverages YOLOv8 for object detection and the SORT algorithm for tracking vehicles across frames. The detected license plates are then processed using EasyOCR to extract the text, with a focus on Indian license plate formats.
2 stars 0 forks source link
car-detection computer-vision easyocr license-plate-detection yolov8

Indian Vehicle License Plate Detection using Yolov8 and EasyOCR

This project involves detecting vehicles and reading their license plates from video footage. Utilizing YOLOv8 for object detection and the SORT algorithm for tracking, this system identifies vehicles and extracts license plate text, specifically focusing on Indian license plates.

Indian License Plate Format

Introduction

This project aims to detect vehicles and read license plates from video footage. It leverages YOLOv8 for object detection and the SORT algorithm for tracking vehicles across frames. The detected license plates are then processed using EasyOCR to extract the text, with a focus on Indian license plate formats.

Features

Requirements

Installation

  1. Clone the repository:
    
    git clone https://github.com/vn33/IndianVehicleLicensePlateDetection-using-Yolov8-and-EasyOCR.git
    cd vehicle-license-plate-detection

Pipeline Structure

The pipeline for detecting and tracking vehicles and reading license plates is structured as follows:

Load Models and Video:

Initialize Tracker:

Frame-by-Frame Processing:

For each frame in the video:

Vehicle Detection:

Vehicle Tracking:

License Plate Detection:

Assign License Plates to Vehicles:

License Plate Text Extraction:

Store Results:

Write Results:

Pipeline Structure Flowchart

graph TD;
    A[Load Models and Video] --> B[Initialize Tracker]
    B --> C[Start Frame-by-Frame Processing]
    C --> D[Vehicle Detection]
    D --> E[Vehicle Tracking]
    E --> F[License Plate Detection]
    F --> G[Assign License Plates to Vehicles]
    G --> H[License Plate Text Extraction]
    H --> I[Store Results]
    I --> J{More Frames?}
    J --> |Yes| C
    J --> |No| K[Write Results]

Acknowledgements

Thanks to the SORT repository for the implementation of the SORT tracking algorithm.

Contributing

Contributions are welcome! Please submit a pull request or open an issue for any feature requests or bug reports.