π SmartFlow is a computer vision-based intelligent traffic management system that detects, classifies, and analyzes vehicle flow in real time to optimize traffic efficiency and reduce congestion.
SmartFlow leverages Deep Learning (YOLOv8) and Computer Vision (OpenCV) to detect vehicles from real-time traffic footage.
The system computes lane-wise density, transmits live data via APIs, and is designed to power adaptive traffic signals in the future.
πΈ Dataset Summary:
- Total images: 8105
- π 6484 for training
- π 1621 for validation/testing
π― Classes Detected:
π Carsβπ BusesβποΈ Motorbikesβπ Trucksβπ Vansβπ² BicyclesβπΊ Rickshaws
π» Technical Details
| Parameter | Value |
|---|---|
| Framework | Ultralytics YOLOv8L |
| GPU Used | NVIDIA GeForce RTX 3050 (6 GB) |
| Training Duration | ~2 Days |
| mAP50 (Cars) | 0.753 |
| Overall mAP50β95 | 0.576 |
| Inference Speed | β‘ 0.3 ms preprocess | 40.4 ms per image |
Developed a real-time detection and analytics system using:
- π§© OpenCV + Python Multithreading for parallel frame processing
- π Backend API Integration for seamless data flow
- π Optimized visualization for lane density & traffic metrics
The result is low-latency, high-speed detection ideal for smart city applications.
flowchart LR
A[π· Traffic Camera Feed] --> B[π§ YOLOv8 Detection]
B --> C[π Lane-wise Vehicle Count]
C --> D[π API Data Transmission]
D --> E[π Dashboard Visualization]
E --> F[π¦ Adaptive Signal Optimization]