This project implements a traffic monitoring system using YOLOv4 for object detection and DeepSORT for object tracking. The system is designed to detect and track vehicles in real-time video streams, allowing for various applications such as traffic analysis, vehicle counting, and monitoring.
- Real-time vehicle detection using YOLOv4
- Object tracking using DeepSORT algorithm
- Support for multiple cameras or video streams
- Customizable configurations for detection and tracking parameters
- Visualization of detected and tracked vehicles on video output
- Python 3.x
- CUDA-enabled GPU (optional, for GPU acceleration)
- OpenCV
- TensorFlow or PyTorch (for YOLOv4)
- DeepSORT
-
Clone this repository:git clone https://github.com/AnandAnnapur/Traffic-Monitoring-Object-Tracking-And-Counting--Using-YOLO-And-deepSORT.git
-
Install dependencies:pip install -r requirements.txt
-
Download YOLOv4 weights and configuration file from official repository or YOLO website.
-
Download DeepSORT model weights and configuration from the DeepSORT repository or official site.
-
Place the YOLOv4 and DeepSORT configuration files and weights in the appropriate directories within the project.
-
Run the
trafficMonitor.py
script:python trafficMonitor.py. -
Adjust detection and tracking parameters as needed in the configuration files.
-
Monitor the output video stream for detected and tracked vehicles.