Skip to content

SakshamJr/Automatic-Vehicle-Number-Plate-Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— Automatic Vehicle Number Plate Recognition

An intelligent system for real-time vehicle license plate detection and recognition using YOLOv8 and EasyOCR.

🎯 Features

  • Real-time vehicle detection and tracking
  • License plate detection using custom-trained YOLOv8 model
  • Optical Character Recognition (OCR) for plate text extraction
  • Vehicle tracking using SORT algorithm
  • CSV output generation with detection results
  • Result visualization tools

βš™οΈ Requirements

  • Python 3.10+
  • CUDA-compatible GPU
  • Dependencies:
    ultralytics
    opencv-python
    easyocr
    numpy
    pandas
    filterpy
    scikit-image
    

πŸš€ Getting Started

  1. Clone the repository:

    git clone https://github.com/SakshamJr/Automatic-Vehicle-Number-Plate-Recognition
    cd Automatic-Vehicle-Number-Plate-Recognition
  2. Install dependencies:

    pip install -r requirements.txt
  3. Train the model:

    python main.ipynb
  4. Run detection:

    python main.py

πŸ“ Project Structure

└── πŸ“ Automatic-Vehicle-Number-Plate-Recognition
    β”œβ”€β”€ πŸ“ dataset
    β”‚   └── πŸ“ train
    β”‚       β”œβ”€β”€ πŸ“ images
    β”‚       β”œβ”€β”€ πŸ“ labels
    β”‚       └── πŸ“„ dataset.yaml
    β”œβ”€β”€ πŸ“„ main.py
    β”œβ”€β”€ πŸ“„ main.ipynb
    β”œβ”€β”€ πŸ“„ utils.py
    β”œβ”€β”€ πŸ“„ sort.py
    β”œβ”€β”€ πŸ“„ visualize.py
    └── πŸ“„ README.md

πŸ› οΈ Components

  • Vehicle Detection: YOLOv8 model for vehicle detection
  • License Plate Detection: Custom YOLOv8 model
  • Tracking: SORT algorithm implementation
  • OCR: EasyOCR integration
  • Data Processing: Automated CSV generation and result handling

πŸ“Š Output Format

Generated CSV includes:

  • Frame number
  • Vehicle ID
  • Vehicle bounding box coordinates
  • License plate location
  • Detected license plate text
  • Confidence scores

✨ Future Improvements

  • Multi-GPU support
  • API integration
  • Web interface
  • Real-time streaming support
  • Multiple camera support

πŸ‘€ Author

Saksham Sapkota

πŸ™ Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors