How chandu991/gesture-control-media-player works
This is a webcam-based gesture media controller. The principal workflow is camera capture in the main loop, hand landmark detection and gesture recognition, frame display, then stable-gesture dispatch to media-key commands. Detection, finger counting, and recognition are implemented in one module, with finger counting shown separately to clarify that internal layer. The README documents the control mapping and real-time capabilities; the sampled source supports the runtime edges shown here.
Main entry points: main.py Capture and Dispatch · gesture_detector.py Hand Detection · media_controller.py Media Commands · config.py Runtime Settings
Components 11
Runtime
- Capture and Dispatch
main.py - Runtime Settings
config.py
Gesture Vision
- Hand Detection
gesture_detector.py - Landmark Overlay
gesture_detector.py - Gesture Recognition
gesture_detector.py - Finger Counting
gesture_detector.py
Media Control
- Media Commands
media_controller.py
Other components
- Webcam
- Camera Preview
- MediaPipe
- Media Player
Connections 11
- Capture and Dispatch → Webcam: captures frames
main.py - Capture and Dispatch → Runtime Settings: loads settings
main.py - Hand Detection → Runtime Settings: loads thresholds
gesture_detector.py - Capture and Dispatch → Hand Detection: detects hands
main.py - Hand Detection → MediaPipe: runs landmark model
gesture_detector.py - Capture and Dispatch → Landmark Overlay: draws landmarks
main.py - Capture and Dispatch → Gesture Recognition: recognizes gesture
main.py - Gesture Recognition → Finger Counting: counts fingers
gesture_detector.py - Capture and Dispatch → Media Commands: dispatches commands
main.py - Media Commands → Media Player: sends media keys
media_controller.py - Capture and Dispatch → Camera Preview: shows camera view
main.py