{"id":26292501,"url":"https://github.com/arshtiwari2004/waygen","last_synced_at":"2025-08-08T06:20:52.015Z","repository":{"id":281303791,"uuid":"944875024","full_name":"ArshTiwari2004/Waygen","owner":"ArshTiwari2004","description":"WayGen is an AI-powered traffic management system ","archived":false,"fork":false,"pushed_at":"2025-03-11T04:46:48.000Z","size":49327,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T20:04:27.599Z","etag":null,"topics":["deepsort","docker","flask","mapmyindia-api","mongodb","opencv","raspberry-pi","websocket","yolov8"],"latest_commit_sha":null,"homepage":"https://waygen.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArshTiwari2004.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-08T06:15:22.000Z","updated_at":"2025-04-10T16:05:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"389a72ea-24ee-4486-a2b7-4b8a7f1382d0","html_url":"https://github.com/ArshTiwari2004/Waygen","commit_stats":null,"previous_names":["arshtiwari2004/waygen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ArshTiwari2004/Waygen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArshTiwari2004%2FWaygen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArshTiwari2004%2FWaygen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArshTiwari2004%2FWaygen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArshTiwari2004%2FWaygen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArshTiwari2004","download_url":"https://codeload.github.com/ArshTiwari2004/Waygen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArshTiwari2004%2FWaygen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269373720,"owners_count":24406443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deepsort","docker","flask","mapmyindia-api","mongodb","opencv","raspberry-pi","websocket","yolov8"],"created_at":"2025-03-15T01:35:57.642Z","updated_at":"2025-08-08T06:20:51.930Z","avatar_url":"https://github.com/ArshTiwari2004.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Waygen: AI-Powered Smart Traffic Management System\n\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eAI-powered roads, seamless journeys – Built with MapMyIndia\u003c/em\u003e\n\u003c/p\u003e|\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://waygen.vercel.app\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Visit%20WayGen%20Project-4C9DFF?style=for-the-badge\u0026logo=vercel\u0026logoColor=white\" alt=\"WayGen Project\" /\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003cp style=\"font-size: 16px; color: #666;\"\u003eClick the button above to visit the live version of the WayGen project hosted on Vercel.\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align =\"center\"\u003e\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://www.python.org/downloads/)\n[![React](https://img.shields.io/badge/React-18.x-blue.svg)](https://reactjs.org/)\n[![Flask](https://img.shields.io/badge/Flask-2.x-green.svg)](https://flask.palletsprojects.com/)\n\n\u003c/div\u003e\n\n## 🌟 Overview\n\nWaygen is an AI-driven Smart Traffic Management System designed to revolutionize urban mobility by integrating computer vision, IoT, and geospatial intelligence. Our solution addresses the critical challenges of urban traffic congestion through real-time monitoring, analysis, and optimization.\n\n## 🚦 Problem Statement\n\nUrban traffic congestion is a major challenge, leading to:\n- Delays and wasted time\n- Increased fuel consumption and pollution\n- Higher accident rates\n- Emergency vehicle delays\n- Inefficient traffic flow\n\nConventional traffic lights operate on fixed timers which do not adapt to real-time traffic conditions. This causes:\n- Wasted green lights on empty lanes\n- Vehicle pile-ups in congested directions\n- Long queues and increased delays\n- Emergency vehicle struggles in critical situations\n- Outdated systems compared to modern smart adaptive solutions\n\n## 💡 Our Solution\n\nWayGen revolutionizes traffic management through:\n- **AI-driven traffic analysis** - YOLO-based vehicle detection continuously monitors traffic flow\n- **Dynamic signal adjustment** - Traffic lights adapt in real-time based on congestion patterns\n- **IoT integration** - Raspberry Pi-powered signal controllers ensure seamless optimization\n- **Geospatial intelligence** - MapMyIndia integration provides real-time navigation and alternative routes\n- **Emergency vehicle prioritization** - Automatic detection and signal adjustment for emergency vehicles\n- **Congestion prediction** - AI models analyze patterns to prevent bottlenecks before they occur\n\n## 🔑 Core Features\n\n- ✅ **AI-based Real-time Traffic Light Control**\n  - Monitors traffic density and adjusts signal timings dynamically\n  - Reduces wait times and improves traffic flow efficiency\n\n- ✅ **Emergency Vehicle Detection \u0026 Prioritization**\n  - Detects sirens and visual identification of emergency vehicles\n  - Automatically adjusts signals to create green corridors\n\n- ✅ **Live Traffic Congestion Heatmap**\n  - Visualizes congestion levels across the monitored area\n  - Helps users identify and avoid traffic hotspots\n\n- ✅ **Alternate Route Recommendations**\n  - Suggests optimal alternative routes during heavy traffic\n  - Integrates with MapMyIndia for accurate navigation\n\n- ✅ **Traffic Flow Predictions**\n  - Analyzes historical data to predict future congestion patterns\n  - Enables proactive traffic management strategies\n\n## 🔧 Technical Architecture\n\n### Components Overview\n\n1. **Data Collection Layer**\n   - CCTV cameras \u0026 drones capture live video feeds\n   - Microphone sensors detect emergency vehicle sirens\n   - IoT devices (Raspberry Pi \u0026 Arduino) process sensor inputs\n\n2. **AI Processing Layer**\n   - YOLOv8 for vehicle detection and classification\n   - DeepSORT for vehicle tracking\n   - OpenCV for image processing\n   - Flask for API management\n\n3. **Backend Processing**\n   - MongoDB for data storage\n   - WebSocket for real-time communication\n   - Traffic analysis algorithms\n\n4. **Frontend Dashboard**\n   - React-based responsive interface\n   - Real-time traffic analytics visualization\n   - MapMyIndia integration for geospatial display\n\n5. **Signal Control System**\n   - Priority-based signal switching for emergency vehicles\n   - Adaptive traffic light control based on congestion analysis\n\n## 💻 Technology Stack\n\n### Frontend\n- **React** - UI library for building the dashboard\n- **MapMyIndia SDK** - For maps integration and geospatial visualization\n- **WebSocket** - For real-time communication with the backend\n\n### Backend\n- **Flask** - Python web framework for the API\n- **MongoDB** - Database for storing traffic data and patterns\n- **WebSocket** - For real-time data transmission\n\n### AI \u0026 Computer Vision\n- **YOLOv8** - For real-time object detection\n- **DeepSORT** - For object tracking\n- **OpenCV** - For image processing\n- **Python** - Primary programming language\n\n### Hardware\n- **Raspberry Pi** - For edge computing and signal control\n- **Arduino** - For sensor integration\n- **CCTV Cameras** - For traffic monitoring\n\n## 🚀 Getting Started\n\n### Prerequisites\n- Python 3.8+\n- Node.js and npm\n- MongoDB\n- MapMyIndia API key\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/ArshTiwari2004/Waygen.git\n   cd Waygen\n   ```\n2. **Setup Frontend**\n    ```bash\n    cd traffic-monitoring/frontend\n    npm install\n    ```\n3. **Create a .env file in the root of the frontend directory with:**\n    ```bash\n    VITE_MAPPLS_SDK_KEY=your_mapmy_india_sdk_key\n    ```\n4. **Start the development server:**\n    ```\n    npm run dev\n    ```\n5.  **Setup Backend - Create and activate a virtual environment:**\n    ```\n    python -m venv venv\n    venv\\Scripts\\activate  # Windows\n    source venv/bin/activate  # Linux/Mac\n    ```\n6. **Install the required packages:**\n    ```\n    pip install -r requirements.txt\n    ```\n7. **Start the Flask server:**\n    ```\n    python backend/flask_api.py\n    ```\n\n# Project Structure\n```markdown\nWaygen/\n├── .git/\n├── .ipynb_checkpoints/\n├── .vscode/\n├── traffic-monitoring/\n│ ├── backend/\n│ ├── data/\n│ ├── frontend/\n│ ├── notebooks/\n│ ├── simulation/\n│ └── yolov8n.pt\n└── README.md\n```\n\n## 🔮 Future Enhancements\n\n- AI-powered license plate recognition \n- Reinforcement learning can optimize signal patterns dynamically based on historical and real-time traffic flow\n- Detect accidents or vehicle breakdowns.\n\n\n## 🤝 Contributing\n#### Contributions are welcome! Please feel free to submit a Pull Request.\n\n- Fork the repository\n- Create your feature branch (git checkout -b feature/amazing-feature)\n- Commit your changes (git commit -m 'Add some amazing feature')\n- Push to the branch (git push origin feature/amazing-feature)\n- Open a Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshtiwari2004%2Fwaygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farshtiwari2004%2Fwaygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshtiwari2004%2Fwaygen/lists"}