Control your system volume with hand gestures using computer vision and hand tracking technologies.
This project enables users to control system volume using intuitive hand gestures. By leveraging computer vision and hand tracking, we've created a touchless interface that adjusts volume based on the distance between your thumb and index finger. This solution enhances accessibility and provides an innovative approach to user interaction.
- Python 3
- OpenCV: For capturing video frames and image processing
- Mediapipe: For real-time hand detection and tracking
- PyCaw: For interacting with system audio settings
- NumPy: For numerical operations and interpolation
- Custom HandTrackingModule: A purpose-built module for advanced hand tracking features
- 🎮 Gesture-Based Volume Control: Adjust system volume by changing the distance between thumb and index finger
- 🔍 Real-time Hand Detection: Instant hand gesture recognition using Mediapipe
- 📊 Smooth Transition: Optimized gesture recognition for fluid volume adjustments
- 🛠️ Custom HandTrackingModule: Enhanced capabilities for finger tracking and gesture recognition
- Computer with a webcam
- Python 3.x installed
-
Clone the repository:
git clone https://github.com/yourusername/gesture-volume-control.git
-
Navigate to the project directory:
cd gesture-volume-control
-
Install required dependencies:
pip install -r requirements.txt
-
Start the application:
python VolumeControl.py
-
Use hand gestures to control volume:
- Bring thumb and index finger closer for lower volume
- Move them apart for higher volume
-
Press 'Esc' to exit the application
- The webcam detects your hand in real-time
- Position your hand in front of the camera
- Adjust volume by changing thumb-index finger distance:
- Closer = Lower volume
- Wider = Higher volume
- On-screen display shows current volume percentage
Our custom-built module enhances Mediapipe functionality with:
- Precise hand landmark detection
- Real-time distance calculation between fingers
- Specialized gesture recognition for volume control
- Accessibility: Touchless control for users with mobility challenges
- Hands-Free Environments: Ideal for presentations or cooking scenarios
- Innovation: Stepping stone for future gesture-based interfaces
For detailed instructions and API documentation, visit our Documentation.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
For questions or feedback:
- 📧 Email: [email protected]
- 🐙 GitHub: @mjgandhi2305
Made with ❤️ by Miten Gandhi