This project uses a webcam to detect hand gestures and control the system volume based on the distance between the thumb and index finger. It features a real-time volume bar that updates as you adjust the volume with your hand.
- 🎥 Real-time hand gesture detection using MediaPipe
- 🔊 Volume control using Pycaw
- 🌐 Web-based interface with a real-time volume bar
- 📡 WebSocket communication for real-time updates
- Python 3.x
- Node.js
- A webcam
-
Clone the repository:
git clone https://github.com/nikpatil7/Gesture-Based-Volume-Control.git cd Gesture-Based-Volume-Control -
Install Python dependencies:
pip install -r requirements.txt
-
Install Node.js dependencies:
cd backend npm install
-
Start the Node.js server:
npm start
-
Run the Python script:
python main.py
-
Access the web interface: Open your web browser and go to
http://localhost:3000.
- Ensure your webcam is connected.
- Use your hand to control the volume by adjusting the distance between your thumb and index finger.
- The volume bar on the web interface will update in real-time to reflect the current volume level.
- OpenCV
- MediaPipe
- NumPy
- Pycaw
- Requests
- Express
- WS (WebSocket)
You can find the complete list of dependencies in the requirements.txt and package.json files.



