Smart_Light_AI is an intelligent traffic management system that uses YOLOv8 vehicle detection and adaptive signal control to optimize traffic flow in real-time. The system also prioritizes emergency vehicles to reduce response time and improve urban mobility efficiency.
- 🚗 Real-time vehicle detection using YOLOv8
- 🚦 Adaptive traffic signal timing based on vehicle density
- 🚑 Emergency vehicle priority system
- 📊 Admin Dashboard for traffic monitoring and control
- 🌐 Public Dashboard for live traffic visualization
- ⚡ FastAPI backend for API services
- ⚛️ React-based frontend (Admin + Public UI)
- Python
- FastAPI
- Uvicorn
- YOLOv8
- OpenCV
- React.js
- JavaScript
- HTML/CSS
- Render (Backend)
- Vercel (Frontend)
Smart_Light_AI/
│
├── backend/ # FastAPI backend & AI logic
├── smartlight-ui/ # Admin dashboard
├── smartlight-public/ # Public dashboard
├── images/ # Project assets
├── videos/ # Simulation videos
├── models/ # YOLO model files
├── requirements.txt # Python dependencies
├── runtime.txt # Python version
└── simulation.py # Traffic simulation logic
git clone https://github.com/YOUR_USERNAME/Smart_Light_AI.git
cd Smart_Light_AIpython -m venv venv
venv\\Scripts\\activate # Windowspip install -r requirements.txtuvicorn backend.app.main:app --reloadServer will start at:
http://127.0.0.1:8000
Smart_Light_AI dynamically adjusts traffic signals based on real-time vehicle detection using computer vision. It helps:
- Reduce traffic congestion
- Improve emergency response time
- Optimize traffic signal efficiency
- Enable smarter urban traffic management
This project is developed as a final-year AI-based smart city solution aimed at improving traffic flow using intelligent automation and real-time vehicle detection.
- Cloud-based real-time camera integration
- AI-based traffic prediction
- Multi-intersection coordination
- Analytics dashboard with historical insights
⭐ If you found this project helpful, consider giving it a star!