This repository contains my Smart Traffic Signal System, a Python-based project aimed at optimizing traffic flow using real-time/simulated data. It intelligently adjusts signal durations based on vehicle density to reduce congestion and improve city traffic management.
π static/ # Static files (e.g., CSS, JS, images for UI if any)
π templates/ # HTML templates (for Flask app interface)
π app.py # Main Flask application
π database.py # Handles database connections and schema
π database.db # SQLite database for user data/logs
π generate_verification_codes.py # Utility script for creating codes (e.g., OTPs)
π temp.py # Temporary test script or experimental code
π test.py # Testing or unit test file
π test_time.py # Simulates signal timing behavior
π user_activity.xlsx # Dataset or logs of simulated user activity
π LICENSE.md # License file (MIT or other)
π Project-Report.pdf # Final project documentation/report
π SmartTrafficSignal_Aman_USC_UCT.pdf # Formal college submission document
π Smart_Traffic_Signal_SEM-4.pdf # Academic report for SEM-4
π README.md # This file
To build an intelligent traffic light control system that uses real-time or simulated input to:
- Count vehicle density at intersections
- Dynamically alter traffic signal timings
- Reduce waiting time and congestion
- Log user/traffic activity for analysis
- Python 3.x β Core language
- Flask β Backend web framework
- SQLite β Lightweight database
- OpenCV (optional) β For real-time camera-based vehicle detection
- time, random, threading β Used in simulation logic
- Excel (XLSX) β For logging and exporting user/traffic data
β
Dynamic Signal Timing β Signal times change based on traffic volume
β
Web-Based Dashboard β UI built using Flask with HTML templates
β
User Activity Log β All actions and durations are stored in a DB/XLSX
β
Traffic Simulation β test_time.py
mimics real-world traffic flow
β
Extensible Design β Can be scaled for multiple intersections
-
Clone the repository
git clone https://github.com/amanantuley/smart-traffic-signal.git cd smart-traffic-signal
-
Install dependencies (Create a
requirements.txt
if needed; otherwise manually install)pip install flask pandas openpyxl
-
Run the application
python app.py
-
Access the web interface Navigate to
http://localhost:5000
in your browser.
Place screenshots in a
screenshots/
folder and reference here once available.
- π
Project-Report.pdf
β Final project documentation - π
SmartTrafficSignal_Aman_USC_UCT.pdf
β Official college submission - π
Smart_Traffic_Signal_SEM-4.pdf
β Academic report for semester-4
- π¨βπ» Developer: Aman Antuley
- π§ Email: amanantuley@gmail.com
- π LinkedIn: linkedin.com/in/amanantuley
- π GitHub: github.com/amanantuley
This project is licensed under the MIT License. Feel free to use, modify, and distribute with attribution.