How ysaicharanreddy1/volume-control-hand-gesture works
This project maps webcam hand gestures to Windows master volume in real time. The volume-control script captures and displays video, asks the hand-tracking module for landmarks, maps the distance between thumb and index-finger landmarks to the system volume range, and sends that value to the Windows audio endpoint. The README documents this capability and its libraries; the graph reflects the two supplied source files. The camera and display are represented as external endpoints.
Main entry points: Volume_Control_Project.py Volume app loop · HandTrackingModule.py Hand detector
Components 9
Video input
- Webcam
- Video display
Hand tracking
- Hand detector
HGVC_Project/HandTrackingModule.py - MediaPipe Hands
- Hand landmarks
HGVC_Project/HandTrackingModule.py
Volume control
- Volume app loop
HGVC_Project/Volume_Control_Project.py - Distance mapping
HGVC_Project/Volume_Control_Project.py - Windows audio endpoint
Other components
- User
Connections 9
- User → Webcam: gestures
- Webcam → Volume app loop: frames
- Volume app loop → Hand detector: requests landmarks
- Hand detector → MediaPipe Hands: processes frames
- Hand detector → Hand landmarks: extracts coordinates
- Hand landmarks → Volume app loop: returns positions
- Volume app loop → Distance mapping: measures fingertips
- Distance mapping → Windows audio endpoint: sets master volume
- Volume app loop → Video display: shows annotated frames