A real-time, touchless computer vision control interface built in Python that translates hand gestures captured via a local webcam into operating system mouse and media control commands. Powered by OpenCV, MediaPipe 21 hand landmarks, EMA cursor smoothing, and multi-frame temporal voting.
Move index finger here and pinch thumb & index to trigger a single left click.
Sustain pinch for >0.25s to engage mouse down, drag chip into drop target!
Section 1: Real-Time Hand Tracking
Using Google MediaPipe Hands, our Python engine tracks 21 skeletal landmarks with 3D normalization.
Section 2: Multi-Frame Temporal Quorum
Rather than making fragile decisions on a single frame, a sliding window of 7 frames requires 4 consistent detections before triggering an action.
Section 3: Exponential Smoothing
EMA filtering completely removes sensor tremor and sub-pixel hand shakes.
Section 4: Click and Drag Mechanics
A sustained pinch transitions the mouse state into mouse down and streams smoothed coordinates.
| Vector Metric | Ratio | Threshold | State |
|---|---|---|---|
| Thumb-Index Distance | 0.041 | < 0.055 | PINCH |
| Thumb-Middle Distance | 0.182 | < 0.055 | OPEN |
| Index-Middle Spread | 0.038 | < 0.065 | ALIGNED |
| Thumb-Pinky Span | 0.312 | > 0.280 | SPREAD |