Skip to content

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.

License

Notifications You must be signed in to change notification settings

rishraks/Hand_Gesture_Volume_Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:
    git clone https://github.com/rishraks/Hand_Gesture_Volume_Control.git
    cd hand-gesture-volume-control
  2. Install required libraries:
    python volume_control.py

Usage

  1. Run the script:
    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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages