How shivprasadpravindongapure/ai-based-intelligent-traffic-managment-system works
This repository implements an AI-assisted traffic management system: a React dashboard presents live lane state and controls, a Node.js service schedules signals, and a Python/YOLOv8 service detects vehicles and supplies annotated frames. The main workflow runs from lane video detection through detection updates to signal scheduling and live dashboard updates. The tree also contains an earlier runtimerulers frontend with placeholder comparison and pollution pages; the active traffic-system frontend provides the documented dashboards. Backend details are represented at documented subsystem level because the excerpts do not expose their internal implementation.
Main entry points: App.jsx Dashboard router · main.py Detection API · TrafficSimulationNew.jsx Traffic control · socket.js Socket client
Components 15
Traffic dashboard
- Dashboard router
traffic-system/src/App.jsx - Live navigation
traffic-system/src/components/NavigationNew.jsx - Traffic control
traffic-system/src/pages/TrafficSimulationNew.jsx - District monitor
traffic-system/src/pages/AdminDashboard.jsx - AI comparison
traffic-system/src/pages/ComparisonPage.jsx - Pollution page
traffic-system/src/pages/PollutionControl.jsx - Socket client
traffic-system/src/socket.js
Signal engine
- Signal service
backend/node/server.js - Signal scheduling
backend/node/server.js - Signal API and events
backend/node/server.js
AI detection
- Detection API
backend/python/main.py - Vehicle detection
backend/python/main.py - Annotated frames
backend/python/main.py
Other components
- Traffic operator
- Lane video sources
Connections 19
- Traffic operator → Dashboard router: uses
README.md - Dashboard router → Live navigation: renders
traffic-system/src/App.jsx - Dashboard router → Traffic control: routes
traffic-system/src/App.jsx - Dashboard router → District monitor: routes
traffic-system/src/App.jsx - Dashboard router → AI comparison: routes
traffic-system/src/App.jsx - Traffic operator → Pollution page: views
- Live navigation → Socket client: subscribes
traffic-system/src/components/NavigationNew.jsx - Traffic control → Socket client: subscribes
traffic-system/src/pages/TrafficSimulationNew.jsx - District monitor → Socket client: subscribes
traffic-system/src/pages/AdminDashboard.jsx - Socket client → Signal API and events: exchanges events
README.md - Traffic control → Detection API: fetches frames
traffic-system/src/pages/TrafficSimulationNew.jsx - District monitor → Detection API: fetches frames
- Lane video sources → Vehicle detection: supplies video
README.md - Vehicle detection → Detection API: serves detections
README.md - Detection API → Signal API and events: posts detections
README.md - Signal service → Signal scheduling: runs
README.md - Signal service → Signal API and events: exposes
README.md - Detection API → Annotated frames: serves streams
README.md - Annotated frames → Traffic control: displays frames
traffic-system/src/pages/TrafficSimulationNew.jsx