Skip to content

Various basic techniques object tracking using OpenCV in Python

Notifications You must be signed in to change notification settings

NamNguyen511/real_time_object_tracking

Repository files navigation

Real-Time Object Tracking

This project implements various basic techniques for real-time object tracking using OpenCV in Python. For further implementations, please follow OpenCV documentaion.

  • Motion Detection
  • Optical Flow
  • Background Subtraction
  • Object Tracking with MeanShift and CamShift

Setup

  1. Clone the repository:
    git clone https://github.com/yourusername/real_time_object_tracking.git
    cd real_time_object_tracking
    
  2. Install the required packages:
    pip install -r requirements.txt
    

Usage

Run the motion_detection.py script to start the real_time object tracking application. The same with other files.

python motion_detection.py

Screenshot_2

Features

  • Motion Detection: Detects and highlights moving objects in the video feed
  • Optical Flow: Computes and visualizes the motion vectors in the video
  • Background Subtraction: Separates moving objects from the background using MOG2 and KNN methods.
  • Object Tracking: Tracks the selected object using MeanShift and CamShift

Contributing

Feel free to submit issues or pull request if you have any improvements or bug fixes.

About

Various basic techniques object tracking using OpenCV in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages