Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rishraks/hand_gesture_volume_control

This project implements a hand gesture-based volume control system using a webcam. By detecting the distance between the thumb and index finger using MediaPipe and OpenCV, the system adjusts audio volume in real time via Pycaw. It features smooth volume transitions and intuitive control for a seamless user experience.
https://github.com/rishraks/hand_gesture_volume_control

computer-vision gesture-detection mediapipe opencv-python pycaw

Last synced: 6 days ago
JSON representation

This project implements a hand gesture-based volume control system using a webcam. By detecting the distance between the thumb and index finger using MediaPipe and OpenCV, the system adjusts audio volume in real time via Pycaw. It features smooth volume transitions and intuitive control for a seamless user experience.

Awesome Lists containing this project

README

        

# Hand Gesture Volume Control

This project allows users to control the system volume using hand gestures. It utilizes a webcam to detect the distance between the thumb and index finger and adjusts the audio volume in real-time. The system leverages `MediaPipe`, `OpenCV`, and `Pycaw` for gesture detection and audio control.

## Features
- Real-time hand tracking with MediaPipe.
- Smooth volume adjustments using distance between fingers.
- Intuitive and contactless volume control.

## Libraries Used
- `opencv-python`: For video capture and frame processing.
- `mediapipe`: For hand landmark detection.
- `pycaw`: For controlling system audio.
- `numpy`: For efficient numerical operations.

## How It Works
1. Captures video input from the webcam.
2. Detects hand landmarks using MediaPipe.
3. Calculates the distance between the thumb and index finger.
4. Maps the distance to the system volume range.
5. Smoothly adjusts the volume using Pycaw.

## Installation
1. Clone this repository:
```bash
git clone https://github.com/rishraks/Hand_Gesture_Volume_Control.git
cd hand-gesture-volume-control
```
2. Install required libraries:
```bash
python volume_control.py
```

## Usage
1. Run the script:
```bash
python Volume_Control.py
```
2. Adjust the system volume by changing the distance between your thumb and index finger in front of the webcam.
3. Press q to exit the application.

## Acknowledgments
- MediaPipe
- OpenCV
- Pycaw

## License
This project is licensed under the MIT License. See the LICENSE file for details.