This project is a Computer Vision application developed to detect, assign identities to, and track multiple objects in video streams in real time.
- About the Project
- Features
- Technologies & Methods Used
- Installation
- Usage
- Project Structure
- Contributing
- Contact
- License
This work was created to provide solutions to object tracking problems. The project basically includes the following steps:
- Object Detection: Determining the locations of objects (people, vehicles, etc.) in each frame.
- 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
flowchart LR
A[Video Input] --> B[YOLOv8 Object Detection]
B --> C[ByteTrack Multi-Object Tracking]
C --> D[OpenCV Visualization]
- 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.
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 |
Follow the steps below to run the project on your local machine:
git clone https://github.com/halukcansarioz/Multiple-Object-Tracking.git
cd Multiple-Object-Trackingpip install -r requirements(Note: If you want to use GPU support, make sure you install the CUDA versions of PyTorch.)
jupyter notebook "Derin_Öğrenme_ve_Yapay_Sinir_Ağları.ipynb"or click the "Open In Colab" badge above to open directly in Google Colab.
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"coklu-nesne-takibi/
├── Derin_Öğrenme_ve_Yapay_Sinir_Ağları.ipynb # Main notebook (Colab compatible)
├── requirements # Python dependencies
└── README.md # Project documentation
Contributions, bug reports, and feature requests are welcome!
- Fork this repository.
- Create a Branch (
git checkout -b feature/NewFeature). - Make your changes and Commit (
git commit -m 'Add: New feature'). - Push your code (
git push origin feature/NewFeature). - Open a Pull Request.
Haluk Can Sarıöz
- GitHub: @halukcansarioz
- Email: halukcansarioz19@gmail.com
- LinkedIn: Haluk Can Sarıöz
If you found this project helpful, don't forget to ⭐ it!
This project is licensed under the MIT License.