https://github.com/architj6/gesture-volume-control
Easily control your system volume with simple hand gestures! This project leverages OpenCV, MediaPipe, and Pycaw to track hand movements and adjust the system volume dynamically. Say goodbye to keyboard shortcuts and volume buttonsβjust move your hand to set the volume!
https://github.com/architj6/gesture-volume-control
handgesture mediapipe numpy opencv os pycaw python python3 volume-control
Last synced: 2 months ago
JSON representation
Easily control your system volume with simple hand gestures! This project leverages OpenCV, MediaPipe, and Pycaw to track hand movements and adjust the system volume dynamically. Say goodbye to keyboard shortcuts and volume buttonsβjust move your hand to set the volume!
- Host: GitHub
- URL: https://github.com/architj6/gesture-volume-control
- Owner: ArchitJ6
- License: mit
- Created: 2025-01-29T14:12:39.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-29T15:47:54.000Z (4 months ago)
- Last Synced: 2025-03-26T02:11:25.435Z (2 months ago)
- Topics: handgesture, mediapipe, numpy, opencv, os, pycaw, python, python3, volume-control
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gesture-Volume-Control π΅β
Easily control your system volume with simple hand gestures! This project leverages **OpenCV**, **MediaPipe**, and **Pycaw** to track hand movements and adjust the system volume dynamically. Say goodbye to keyboard shortcuts and volume buttonsβjust move your hand to set the volume!
---
## π Features
β **Real-time Hand Tracking** β Uses OpenCV and MediaPipe to detect and track hand movements efficiently.
β **Gesture-Based Volume Control** β Adjust system volume by changing the distance between your thumb and index finger.
β **Smooth & Responsive** β Optimized for real-time performance with minimal latency.
β **Cross-Platform Support** β Works on **Windows, macOS, and Linux**.
β **Lightweight & Easy to Use** β Requires minimal dependencies and runs with basic system resources.---
## π₯οΈ Supported Operating Systems
| OS | Supported |
|----------|-----------|
| Windows | β Yes |
| macOS | β Yes |
| Linux | β Yes |π‘ **Note:** On **Linux and macOS**, ensure Pycaw alternatives like `pactl` (PulseAudio) or `os.system` commands are used for volume control.
---
## π Installation
Follow these steps to set up and run the project:
### 1οΈβ£ Clone the Repository
```bash
git clone https://github.com/ArchitJ6/Gesture-Volume-Control.git
cd Gesture-Volume-Control
```### 2οΈβ£ Install Dependencies
Ensure you have Python **3.7+** installed. Then, run:
```bash
pip install -r requirements.txt
```### 3οΈβ£ Run the Application
```bash
python VolumeHandControl.py
```---
## ποΈ How It Works
The application captures video through the webcam and uses **MediaPipe** to detect hand landmarks. By measuring the distance between the **thumb and index finger**, it maps the distance to the system's volume level, adjusting it in real time.π **Hand Gestures:**
- Move your thumb and index finger **closer** β π Decrease volume
- Move them **farther apart** β π Increase volume---
## π οΈ Configuration
You can tweak the sensitivity and behavior inside `VolumeHandControl.py`. Some key parameters:
- **Min/Max Hand Distance** β Defines the range for volume scaling.
- **Frame Rate Optimization** β Adjust camera frame processing speed.---
## π₯ Cloning (For Development)
If you want to contribute or modify the project, clone it:
```bash
git clone https://github.com/ArchitJ6/Gesture-Volume-Control.git
cd Gesture-Volume-Control
```---
## π€ Contributing
We welcome contributions! π### Steps to contribute:
1οΈβ£ **Fork the repository** π΄
2οΈβ£ **Create a new branch** (`git checkout -b feature-branch`) π±
3οΈβ£ **Make your changes** and commit (`git commit -m "Your message"`) π
4οΈβ£ **Push your changes** (`git push origin feature-branch`) π€
5οΈβ£ **Submit a pull request** πFeel free to add new features, optimize performance, or improve the UI! π
---
## π License
This project is licensed under the **MIT License**. π