Skip to content

SmartFlow β€” An AI-powered intelligent traffic management system built using YOLOv8 and OpenCV that detects and analyzes real-time vehicle flow to optimize traffic signals and improve road efficiency. πŸš—πŸšŒπŸοΈ

Notifications You must be signed in to change notification settings

harshit-033/SmartFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚦 SmartFlow

AI-Powered Intelligent Traffic Management System

SmartFlow Logo

πŸš— 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.


πŸ” Project Overview

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 & Model Training

πŸ“Έ 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

βš™οΈ Real-Time Inference System

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.


πŸ”„ Workflow

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]
Loading

About

SmartFlow β€” An AI-powered intelligent traffic management system built using YOLOv8 and OpenCV that detects and analyzes real-time vehicle flow to optimize traffic signals and improve road efficiency. πŸš—πŸšŒπŸοΈ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages