Skip to content

surya077-mj/Real-Time-Vehicle-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Real-Time Vehicle Detection πŸš—πŸŽ―

This project performs real-time vehicle detection and tracking using YOLOv5 for object detection and DeepSort for multi-object tracking.

It detects vehicles from live video or webcam streams and assigns persistent IDs for each vehicle moving through the frame.


🧠 Tech Stack

  • Python 🐍
  • YOLOv5 πŸš€ (Ultralytics)
  • DeepSort πŸ“ (Tracking)
  • OpenCV πŸŽ₯
  • Torch / CUDA πŸ”₯

πŸ“¦ Installation

# Clone the repository
git clone https://github.com/surya077-mj/Real-Time-Vehicle-Detection.git
cd Real-Time-Vehicle-Detection

# Install dependencies
pip install -r requirements.txt

# Download YOLOv5 weights
wget https://github.com/ultralytics/yolov5/releases/download/v6.0/yolov5s.pt
πŸš€ Usage
bash
Copy
Edit
# Run on webcam
python track.py --source 0 --yolo_model yolov5s.pt --img 640

# Run on video file
python track.py --source path/to/video.mp4 --yolo_model yolov5s.pt --img 640
--source: Input source (0 = webcam, or path to video)

--img: Input image size (default = 640)

##πŸ™Œ Acknowledgements
Ultralytics YOLOv5

nwojke/deep_sort

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages