Skip to content

A real-time system that tracks hand proximity to virtual danger zones using classical computer vision (HSV segmentation & Convex Hull) without deep learning.

Notifications You must be signed in to change notification settings

Albijose/Hand-Tracking-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Hand Tracking & Safety System

A real-time computer vision application that tracks hand movements and detects proximity to virtual danger zones — built without deep learning frameworks like MediaPipe.
Uses pure OpenCV + NumPy with classical CV techniques.


Features

  • Classical Computer Vision

    • HSV color segmentation
    • Morphological filtering
    • Contour + convex hull extraction
    • Fingertip detection (via hull analysis)
  • Safety Logic

    • Detects 3 states:
      • 🟢 SAFE
      • 🟡 WARNING
      • 🔴 DANGER
    • Based on distance from hand to danger zone.
  • Analytics

    • Tracks:
      • Total session duration
      • Time spent in danger
      • Time spent in warning
  • Visuals

    • Real-time fingertip trails
    • Distance ring guides
    • Blinking danger alerts
    • Optional mask/debug mode

Requirements

  • Python 3.x
  • Webcam
  • Install dependencies:

How to Run

  1. Connect your webcam.
  2. Run the Python script:

Controls

Key Action
C Auto-Calibrate (Hold hand in center box first)
Q Quit
S Save Configuration
M Toggle Mask View (Debug)
D Toggle Debug Info
T Toggle Fingertip Trail
G Toggle Zone Guides
R Reset Stats

About

A real-time system that tracks hand proximity to virtual danger zones using classical computer vision (HSV segmentation & Convex Hull) without deep learning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages