A real-time license plate detection and recognition system built with Python, YOLOv8, OpenCV, and Flask. This application can stream video from multiple cameras, detect license plates, and log them into a database.
- Multi-Camera Support: Stream from webcams or IP cameras (via RTSP).
- High-Accuracy Detection: Uses a YOLOv8 model for robust license plate detection.
- OCR Engine Options: Supports both Tesseract and EasyOCR for character recognition.
- Universal Plate Filter: A flexible filter to detect various international plate formats.
- Database Logging: Automatically logs every detected plate with a timestamp.
- Web Interface: A clean web UI built with Flask and Bootstrap to view live feeds and logs.
- Python 3.8+
- Git
- Tesseract OCR Engine installed on your system
-
Clone the repository:
git clone [https://github.com/Ashakk69/license-plate-detector.git](https://github.com/Ashakk69/license-plate-detector.git) cd license-plate-detector -
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
-
Install the required libraries:
pip install -r requirements.txt
(Note: You'll need to create a
requirements.txtfile by runningpip freeze > requirements.txtin your terminal)
-
The YOLOv8 model will be downloaded automatically on the first run.
-
Start the Flask server:
python app.py
-
Open your web browser and navigate to
http://127.0.0.1:5000.
| Live Feed | Detection Logs |
|---|---|
| ![Live Feed Screenshot] | |
(![]() |
|
| ) | ![Logs Screenshot] |
(![]() |
|
| ) |
This project is licensed under the MIT License. See the LICENSE file for details.


