Skip to content

Latest commit

ย 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ Universal Color Distance Tracker

A Computer Vision application built with Pure OpenCV that detects specific colored objects and calculates the real-time distance between them in centimeters (cm). Features a built-in interactive GUI to dynamically toggle target colors without restarting the program.

โœจ Features

  • Pure OpenCV Approach: Zero dependencies on heavy Machine Learning models (like MediaPipe), ensuring 100% compatibility and stability across newer Python versions (including Python 3.13).
  • Interactive GUI (Trackbars): Dynamically toggle up to 10 distinct colors (Blue, Orange, Red, Green, Yellow, Purple, Pink, Brown, White, Black) on the fly.
  • Smart Tracking: Automatically isolates and tracks the two largest objects among the selected colors to reduce background noise.
  • Real-Time Measurement: Calculates Euclidean distance and accurately converts pixels to centimeters.
  • Low Latency: Highly optimized to run smoothly on standard local hardware.

๐Ÿ› ๏ธ Tech Stack

  • Python - OpenCV (opencv-python) - For image processing, masking, and GUI.
  • NumPy - For matrix operations and color range array definitions.
  • Math - For Euclidean distance calculations.

๐Ÿš€ Installation & Setup

  1. Clone the repository:
    git clone [https://github.com/username-kamu/color-distance-tracker.git](https://github.com/username-kamu/color-distance-tracker.git)
    cd color-distance-tracker

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages