https://github.com/yashpatel1234586/gesture-volume-control
https://github.com/yashpatel1234586/gesture-volume-control
cv2 math mediapipe numpy python subprocess
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yashpatel1234586/gesture-volume-control
- Owner: YashPatel1234586
- Created: 2025-01-18T17:26:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-15T09:48:49.000Z (over 1 year ago)
- Last Synced: 2025-02-15T10:28:30.570Z (over 1 year ago)
- Topics: cv2, math, mediapipe, numpy, python, subprocess
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
🔊 Gesture-Based Volume Control using OpenCV & MediaPipe
This project enables gesture-based volume control using OpenCV, MediaPipe, and Python. It detects hand gestures via a webcam and adjusts the system volume on macOS based on the distance between the thumb and index finger.
✨ Features:
Real-time Hand Detection using MediaPipe
Volume Control with Finger Gestures (Thumb & Index Finger)
Dynamic Volume Adjustment based on hand movement
Seamless System Integration (macOS osascript for volume control)
Optimized Performance with efficient tracking and processing
🛠️ Tech Stack:
Python
OpenCV (for video processing)
MediaPipe (for hand tracking)
NumPy & Math (for calculations)
AppleScript Integration (macOS volume control)
📌 How It Works:
The script captures live video from the webcam.
Hand landmarks are detected using MediaPipe Hands.
The distance between thumb & index finger is measured.
The volume is dynamically adjusted based on finger spacing.
Visual feedback is displayed, and users can quit by pressing 'q'.
🔗 Usage:
Simply run the script, and adjust your system volume with hand gestures!
🚀 Future Enhancements: Adding Windows/Linux support & voice feedback.