This project leverages YOLO (You Only Look Once) to detect various traffic violations in real-time, improving road safety and compliance. The software identifies and tracks:
- Overtaking 🚗
- Overspeeding 🚨
- Wrong Direction 🚧
- No Helmet Use 🏍️
- No Seatbelt Use 🚗
✔ Real-time Detection: Instantly identifies traffic violations using YOLOv8 models.
✔ Safety Distance Calculation: Measures vehicle distances to prevent accidents.
✔ Web-Based Monitoring: Secure and user-friendly local web interface.
✔ Security System: Ensures data protection and reliable monitoring.
Technology | Purpose |
---|---|
YOLOv8 | Object detection & tracking |
Flask | Web interface backend |
SQLite3 | Local database management |
OpenCV | Image processing |
Python | Programming Language |
📥 Download the full directory containing .exe
files and dependencies from Google Drive:
This directory includes all necessary files and is ready to run directly.
File | Function |
---|---|
main.exe |
Runs the traffic violation detection system |
server.exe |
Starts the local web interface for monitoring |
📌 The GitHub repository only contains the source code and does not include .exe
files. Download the full package from Google Drive.
✅ VGA: Graphics card with 8GB VRAM or more recommended.
✅ RAM: Minimum 16GB RAM suggested for optimal performance.
⚠ File Size Limitations: Certain files are too large for GitHub; the full package is available via Google Drive.
https://<IP_ADDRESS>:<PORT>/<STREAM_PATH>
rtsp://<USERNAME>:<PASSWORD>@<IP_ADDRESS>:<PORT>/<STREAM_PATH>
./cctv example/5.mp4
- Press Connect to Camera to start.
- Press again to stop.
- Remove all areas: Press Undo Area until cleared.
- Create new monitoring areas:
- POINT_A → Marks vehicle’s start position.
- POINT_B → Marks vehicle’s end position for speed measurement.
- LEFT → Defines left lane for wrong-way detection.
- RIGHT → Defines right lane for wrong-way detection.
- Username:
admin
- Password:
admin
📌 Ensure server.exe
is running for web-based monitoring and logging of detected violations.