Skip to content

Repository files navigation

🎯 Multi-Object Tracking (Çoklu Nesne Takibi)

Open In Colab License: MIT Python OpenCV PyTorch CI

This project is a Computer Vision application developed to detect, assign identities to, and track multiple objects in video streams in real time.

📚 Table of Contents


About the Project

This work was created to provide solutions to object tracking problems. The project basically includes the following steps:

  1. Object Detection: Determining the locations of objects (people, vehicles, etc.) in each frame.
  2. Object Tracking: Associating the detected objects between frames and assigning them unique IDs.

This project can serve as a foundation particularly in areas such as security systems, autonomous driving, and traffic analysis.

  • Developer: Haluk Can SARIÖZ
  • Type: Computer Vision / Deep Learning Application
  • Platform: Google Colab / Jupyter Notebook

Pipeline Architecture

flowchart LR
    A[Video Input] --> B[YOLOv8 Object Detection]
    B --> C[ByteTrack Multi-Object Tracking]
    C --> D[OpenCV Visualization]
Loading

Features

  • Multi-Object Tracking: Simultaneously track multiple objects in a video stream.
  • Unique ID Assignment: Assign a persistent identity to each object for consistency across frames.
  • Real-Time Processing: Low latency thanks to optimized algorithms.
  • Google Colab Support: Runnable notebook directly in the browser.
  • GPU Acceleration: Fast model inference with CUDA-enabled PyTorch.

Technologies & Methods Used

The following libraries and algorithms are used in the project:

Category Technology
Language Python
Image Processing OpenCV
Deep Learning PyTorch, TorchVision
Detection Algorithm YOLO (You Only Look Once)
Tracking Algorithm YOLOv8 + ByteTrack
Helper Libraries NumPy, Matplotlib, FilterPy, Scikit-learn
Environment Jupyter Notebook / Google Colab

Installation

Follow the steps below to run the project on your local machine:

1. Clone the repository:

git clone https://github.com/halukcansarioz/Multiple-Object-Tracking.git
cd Multiple-Object-Tracking

2. Install the required libraries:

pip install -r requirements

(Note: If you want to use GPU support, make sure you install the CUDA versions of PyTorch.)

3. Launch the notebook:

jupyter notebook "Derin_Öğrenme_ve_Yapay_Sinir_Ağları.ipynb"

or click the "Open In Colab" badge above to open directly in Google Colab.


Usage

You can see the object detection and tracking processes step by step by running the notebook cells in order. To change the video source, update the file path in the relevant cell:

# For webcam
source = 0

# For a video file
source = "data/sample_video.mp4"

Project Structure

coklu-nesne-takibi/
├── Derin_Öğrenme_ve_Yapay_Sinir_Ağları.ipynb   # Main notebook (Colab compatible)
├── requirements                                  # Python dependencies
└── README.md                                     # Project documentation

Contributing

Contributions, bug reports, and feature requests are welcome!

  1. Fork this repository.
  2. Create a Branch (git checkout -b feature/NewFeature).
  3. Make your changes and Commit (git commit -m 'Add: New feature').
  4. Push your code (git push origin feature/NewFeature).
  5. Open a Pull Request.

Contact

Haluk Can Sarıöz


If you found this project helpful, don't forget to ⭐ it!


License

This project is licensed under the MIT License.