Skip to content

Object Detection using yoloV8 and tracking using deepSORT

Notifications You must be signed in to change notification settings

alirzayev/object_tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Object Detection and Tracking using YOLOv8 and DeepSORT

This Python project showcases real-time object detection using YOLOv8 (You Only Look Once) and object tracking using the multiple tracking algorithms. Supported algorithms are : botsort, bytetrack, deepocsort, ocsort, strongsort. The combination of these techniques enables the detection and tracking of objects in video streams or camera feeds.

## Table of Contents

- [Introduction](#introduction)
- [Setup](#setup)
- [Usage](#usage)
- [Requirements](#requirements)
- [License](#license)

## Introduction

This project utilizes YOLOv8 for object detection and DeepSORT for object tracking. YOLOv8 detects objects in each frame, while DeepSORT tracks the detected objects across frames, maintaining consistent IDs for each tracked object. The project is structured as a Python class that encapsulates the entire process.

## Setup

Follow these steps to set up and run the project on your local machine:

1. Clone the repository:
   ```bash
   git clone https://github.com/your-username/object_tracking.git
   cd object_tracking
  1. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate
  2. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Open the main.py file and configure the traching_method and source parameters:

    tracker = ObjectTracker(tracking_method='deepocsort',source='0')  # Specify the tracking method and source for your camera or video file
    tracker.run()
  2. Run the main script to start object detection and tracking:

    python main.py
  3. Press the Esc key to exit the application.

Requirements

  • ultralytics
  • numpy
  • scikit-learn

License

This project is licensed under the MIT License.

Acknowledgments

About

Object Detection using yoloV8 and tracking using deepSORT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages