Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— Vehicle Number Plate Detection System with YOLOv8

πŸŽ‰ Introduction

Welcome to the Vehicle Number Plate Detection System! πŸš— This project leverages the powerful YOLOv8 framework to accurately detect vehicle number plates in images. Whether you're developing traffic management solutions, parking lot systems, or security surveillance tools, this system provides a robust foundation for your computer vision applications.


✨ Features

  • High Accuracy: Achieves a Mean Average Precision (mAP) of 99.2%.
  • Real-Time Detection: Optimized for fast inference suitable for real-time applications.
  • User-Friendly Interface: Built with Streamlit for easy interaction and visualization.
  • Scalable Training Pipeline: Utilize Google Colab for efficient model training with GPU support.
  • Comprehensive Documentation: Detailed README and usage guides to help you get started quickly.
  • Robust Error Handling: Informative messages to guide users through any issues.

πŸŽ₯ Demo

App Screenshot

Figure 1: Streamlit App Interface showcasing original and detected number plates.


πŸ“ Dataset

πŸ” Dataset Details

  • Source: Roboflow Project - YOLO Unszn
  • Version: 3
  • Total Images: 1,050
  • Annotations: Bounding boxes around number plates
  • Image Formats: JPG, JPEG, PNG

πŸ’Ύ Accessing the Dataset

To access and download the dataset, use the following script:

from roboflow import Roboflow

# Initialize Roboflow
rf = Roboflow(api_key="paste_your_api_key_here")

# Access the specific project and version
project = rf.workspace("dronacharya-college-of-engineering").project("yolo-unszn")
dataset = project.version(3).download("yolov8")

πŸ’» Usage

πŸ”§ Prerequisites

  • πŸ–₯️ Python 3.10 or higher
  • πŸ“¦ pip package manager
  • 🌐 Streamlit installed globally or in a virtual environment

πŸ“¦ Installation

πŸ”— Clone the Repository

git clone https://github.com/alphatechlogics/CarNumberPlateDetection.git
cd CarNumberPlateDetection

🐍 Create a Virtual Environment (Optional but Recommended)

python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

πŸ“¦ Install Dependencies

pip install -r requirements.txt

πŸš€ Running the Streamlit App

  • πŸ’Ύ Ensure the Trained Model is Available
  • Place the best.pt model file in the root directory of the project or specify its path in app.py.
streamlit run app.py

🌐 Access the App

πŸ–ΌοΈ Using the App

  • Upload an Image: Click on the "πŸ“‚ Choose an image..." button to upload a JPG, JPEG, or PNG image.
  • πŸ” Detect Number Plate: Click the "πŸ” Detect Number Plate" button to perform detection.
  • πŸ“· View Results: The original image and the detected number plate will be displayed side by side.

About

Vehicle Number Plate Detection System! πŸš— This project leverages the powerful YOLOv8 framework to accurately detect vehicle number plates in images.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages