Skip to content

🚦 An AI based traffic management system with real-time monitoring

Notifications You must be signed in to change notification settings

ashish0kumar/AI-Based-Traffic-Management-SIH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI-Based-Traffic-Management-SIH

An AI based traffic management system with real-time monitoring

πŸ—’οΈ Overview

The Smart Adaptive Traffic Management System leverages AI and computer vision to optimize traffic flow at intersections. This system analyzes vehicle counts from video feeds, processes the data using machine learning models, and adjusts traffic signal timings to improve traffic flow.

πŸ“Έ Screenshots

1

2

3

✨ Features

  • Vehicle Detection: Uses YOLOv4 for real-time vehicle detection from video feeds.
  • Traffic Optimization: Employs a genetic algorithm to determine optimal green light times based on vehicle counts.
  • Web Interface: Allows users to upload traffic videos, view processing results, and receive optimized traffic management recommendations.

πŸš€ Getting Started

Prerequisites

  • Python 3.x
  • Nodejs
  • OpenCV
  • YOLOv4 weights and configuration files
  • Required Python packages (listed in requirements.txt)

πŸ’» Local Setup

Clone the repository:

git clone https://github.com/ashish0kumar/AI-Based-Traffic-Management.git
cd AI-Based-Traffic-Management

Start the backend server:

cd backend
pip install -r requirements.txt
python app.py

Start the frontend server:

cd frontend
npm install
npm start

Upload Traffic Videos:
Use the web interface to upload 4 traffic videos. The system will process the videos and display optimized green light times based on the analysis.

πŸ™ Acknowledgments

  • YOLOv4: For vehicle detection.
  • OpenCV: For video processing.
  • Genetic Algorithm: For optimizing traffic light timings.