Street Sense is a real-time traffic analysis system designed to detect and track vehicles and estimate their speeds using only a single webcam. This project aims to provide a cost-effective, intelligent solution for monitoring traffic flow and identifying speed violations.
⚠️ This project is under active development — new features and improvements are being added continuously.
- 🚗 Vehicle Detection using the YOLO object detection algorithm
- 🎯 Speed Estimation based on real-time tracking data
- 📹 Works with any webcam or video input
- 🧠 Single-camera solution — no radar, lidar, or multiple sensors required
- 📊 Logs vehicle data including:
- Detected speed
- Timestamp
- Snapshot filename
- 📁 Saves detection results to a CSV file
- YOLO (You Only Look Once) – Object detection
- OpenCV – Video processing and object tracking
- Python – Core implementation
- CSV – Data logging
Video used for development/testing:
demo_01.mp4
demo_02.mp4
-
Clone the repository:
git clone https://github.com/yourusername/street-sense.git cd street-sense```
-
Install required dependencies:
pip install -r requirements.txt
-
Run the main script:
python main.py
snapshots/: Contains images of detected vehicles.log.csv: CSV file containing timestamp, speed, and snapshot filename for each detection.
I'm working on:
- Enhancing object tracking for better accuracy
- Calibrated speed estimation using camera parameters
- UI dashboard for visualizing real-time stats
Stay tuned for updates! 😊