How talha50819/gesture-controlled works
This small project offers two standalone webcam-control workflows. The README’s primary workflow detects thumb and index-finger landmarks, maps their distance to system volume, and displays a volume indicator. A second script instead interprets the fingers’ vertical ordering and sends volume-key presses. Both scripts capture and display video; the source shows no shared runtime module. The graph represents stages within each script, not separate code modules.
Main entry points: inst2.py Distance Script · OpenCV Volume Control.py Gesture Script
Components 17
Distance Control
- Distance Script
inst2.py - Distance Mapping
inst2.py - Audio Endpoint
inst2.py
Gesture Control
- Gesture Script
OpenCV Volume Control.py - Vertical Gesture
OpenCV Volume Control.py - Volume Key Dispatch
OpenCV Volume Control.py
Camera and Display
- Frame Capture
inst2.py - Hand Landmarks
inst2.py - Volume Overlay
inst2.py - Video Display
inst2.py - Frame Capture
OpenCV Volume Control.py - Hand Landmarks
OpenCV Volume Control.py - Video Display
OpenCV Volume Control.py
Other components
- User
- Webcam
- System Audio
- Volume Keys
Connections 24
- User → Distance Script: runs
- User → Gesture Script: runs
- Webcam → Frame Capture: provides frames
- Distance Script → Frame Capture: reads frames
- Frame Capture → Hand Landmarks: processes frames
- Distance Script → Distance Mapping: maps landmark distance
- Hand Landmarks → Distance Mapping: supplies coordinates
- Distance Script → Audio Endpoint: sets volume
- Distance Mapping → Audio Endpoint: provides level
- Audio Endpoint → System Audio: sets endpoint level
- Distance Script → Volume Overlay: draws indicator
- Distance Mapping → Volume Overlay: provides percentage
- Distance Script → Video Display: shows frame
- Volume Overlay → Video Display: draws on frame
- Webcam → Frame Capture: provides frames
- Gesture Script → Frame Capture: reads frames
- Frame Capture → Hand Landmarks: processes frames
- Gesture Script → Vertical Gesture: classifies finger ordering
- Hand Landmarks → Vertical Gesture: supplies positions
- Gesture Script → Volume Key Dispatch: dispatches keys
- Vertical Gesture → Volume Key Dispatch: selects volume key
- Volume Key Dispatch → Volume Keys: presses keys
- Gesture Script → Video Display: shows frame
- Hand Landmarks → Video Display: draws landmarks