Projects
View on GitHub
Nawaf-Rayhan585/LPR-Vehicle-License-Detection
About
Vehicle detection + license plate reading with YOLOv8 and EasyOCR, JSON report export (Streamlit)
Developer ToolsWhat you can do
- Detects cars, motorcycles, buses and trucks with YOLOv8
- Reads plates with EasyOCR (CPU is fine, no GPU needed)
- Draws plate boxes + text on the output video
- Keeps only unique plates, with timestamps
Measured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original🚘 LPR — Vehicle License Plate Recognition
Upload a traffic video, get every vehicle detected and every license plate read — plus a JSON report you can download.
Features
- Detects cars, motorcycles, buses and trucks with YOLOv8
- Reads plates with EasyOCR (CPU is fine, no GPU needed)
- Draws plate boxes + text on the output video
- Keeps only unique plates, with timestamps
- One-click JSON report download
- Runs OCR every 5th frame to stay fast
How it works
video ─► YOLOv8 (vehicles) ─► crop each vehicle ─► EasyOCR ─► unique plates ─► annotated video + JSON
Setup
git clone https://github.com/Nawaf-Rayhan585/LPR-Vehicle-License-Detection.git
cd LPR-Vehicle-License-Detection
pip install -r requirements.txt
Run
python -m streamlit run main.py
Open http://localhost:8501, upload a video, and wait for the report.
Tuning
In main.py:
FRAME_SKIP— run OCR every N frames (lower = more accurate, slower)VEHICLE_CLASSES— which COCO classes count as vehicles
Want better plate accuracy?
This version reads text from the whole vehicle crop. For production, add a dedicated plate detector first — there's a trainable one in YOLO_Projects/license-plate-recognition.
License
MIT — see LICENSE.
Built by Nawaf Rayhan · [email protected] · ⭐ the repo if it helped you
Explore related projects
Loading…