GitHunt
AR

aryansengar007/Object-Detection-and-Tracking

Real-time object detection and tracking using YOLOv8 and Deep SORT with a professional Streamlit interface.

🎯 Object Detection and Tracking (YOLOv8 + Deep SORT)

This project is a real-time object detection and tracking system built using the Ultralytics YOLOv8 models and Deep SORT tracking. It includes a clean and interactive Streamlit interface with webcam, video, and image input support.


πŸš€ Features

  • βœ… YOLOv8 Model Variant Selection (n, s, m, l, x)
  • βœ… Webcam, video file, and image input support
  • βœ… Deep SORT tracking (toggleable)
  • βœ… Real-time FPS counter
  • βœ… Class-wise object count summary
  • βœ… Filter detection by object classes
  • βœ… Confidence threshold control
  • βœ… Detection log console
  • βœ… Download processed video and CSV summary
  • βœ… Fully interactive and professional Streamlit GUI

πŸ“Έ Sample Classes Supported

  • person
  • car
  • dog
  • cat
  • truck
  • bicycle
  • motorcycle
  • bus
  • bottle

(based on COCO dataset classes)


πŸ› οΈ Technologies Used

  • Python
  • OpenCV
  • Ultralytics YOLOv8
  • Deep SORT tracking
  • Streamlit

πŸ“‚ Project Structure

Object-Detection-and-Tracking/
β”‚
β”œβ”€β”€venv/
β”œβ”€β”€ main.py                  # Streamlit GUI logic
β”œβ”€β”€ detect_and_track.py      # Core detection/tracking logic
β”œβ”€β”€ utils.py                 # Model descriptions and class list

▢️ How to Run

  1. Clone this repository
git clone https://github.com/aryansengar007/Object-Detection-and-Tracking.git
cd Object-Detection-and-Tracking
  1. Install dependencies
pip install -r requirements.txt
  1. Download YOLOv8 model weights (e.g. yolov8n.pt)
    From: https://github.com/ultralytics/ultralytics

  2. If using virtual environment, activate it

venv\Scripts\activate

  1. Install necessary libraries
pip install ultralytics opencv-python deep_sort_realtime streamlit

  1. Run the app
streamlit run main.py

πŸ–₯️ Demo Screenshots

Dashboard

Dashboard Screenshot
Dashboard Screenshot
Dashboard Screenshot
Dashboard Screenshot
Dashboard Screenshot

Result

Result Screenshot
Result Screenshot
Result Screenshot
Result Screenshot
Result Screenshot
Result Screenshot
Result Screenshot

Generated File and Video

Fie Screenshot

Fie Screenshot

Fie Screenshot


πŸ™‹β€β™‚οΈ Developed By

Aryan Sengar
πŸ’» Passionate about AI, Computer Vision, and Intelligent Systems
πŸ“ Gurgaon, India


Β© 2025 Aryan Sengar – All Rights Reserved
Unauthorized copying is strictly prohibited.

πŸ’¬ Feel free to drop a ⭐ if you find this helpful!

aryansengar007/Object-Detection-and-Tracking | GitHunt