Skip to content

darkBlueLemon/License-Plate-Recognition-YOLOv8

Repository files navigation

License Plate Recognition and Tracking using YOLOv8 and SORT

Vehicle license plate detection and tracking system, which uses YOLO for detecting license plates in video frames and OpenCV for image processing. It also includes a Flask API for managing vehicle entries and exits, and an SQLite database for storing vehicle information.

Features

Car Detection using YOLOv8 and Tracking using SORT

Screenshot 2024-06-07 at 17 27 33

License Plate Detection

WhatsApp Image 2024-06-07 at 17 36 52

Preprocessing

Screenshot 2024-06-07 at 17 39 44

UI for Management

Screenshot 2024-06-07 at 16 43 30

Prerequisites

flask
opencv-python
ultralytics
sqlite3
requests
sort
  • Download the YOLO model weights (bestNew.pt) and place them in the models directory.

Install the required libraries using pip:

pip install opencv-python face-recognition numpy

Installation

Clone the Repository:

git clone https://github.com/darkBlueLemon/License-Plate-Recognition-YOLOv8.git
cd License-Plate-Recognition-YOLOv8

Set Up Virtual Environment:

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

Install Dependencies:

pip install -r requirements.txt

Set Up Database:

python app.py

Usage

Run the Flask API:

python app.py

Run the main script to process the video and detect license plates:

python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published