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.
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
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
Run the Flask API:
python app.py
Run the main script to process the video and detect license plates:
python main.py