Skip to content
/ HandVolume Public template

A Python project that uses OpenCV and MediaPipe to recognize hand gestures in real time and control the system volume. Pinch or move your fingers to increase or decrease volume just by moving your hand in front of the camera. Perfect for automation, accessibility, or touchless control experiments.

Notifications You must be signed in to change notification settings

hiu154/HandVolume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ–๏ธ Hand Gesture Volume Control ๐ŸŽต

A Python project that uses OpenCV and MediaPipe to recognize hand gestures in real time and control the system volume.

Python Version OpenCV Version MediaPipe License


๐Ÿง  Overview

This project allows you to control your system's volume using hand gestures captured through your webcam.
By tracking your hand in real-time using OpenCV and MediaPipe, the program adjusts the volume based on the distance between your thumb and index finger.

Perfect for:

  • ๐ŸŽฎ Automation projects
  • ๐Ÿง‘โ€๐Ÿฆฝ Accessibility and hands-free control
  • ๐Ÿงช Computer vision & AI experimentation

โš™๏ธ Features

โœ… Real-time hand tracking using MediaPipe Hands
โœ… Smooth and responsive gesture-to-volume mapping
โœ… Works on Windows, macOS, and Linux
โœ… Adjustable sensitivity and detection accuracy
โœ… Simple and clean UI feedback (volume bar, FPS display)


๐Ÿ› ๏ธ Tech Stack

  • Python 3.8+
  • OpenCV โ€“ Video capture & visualization
  • MediaPipe โ€“ Hand tracking
  • PyCaw (Windows) โ€“ Volume control API
  • Numpy โ€“ Math operations

๐Ÿš€ Installation

# Clone the repository
git clone https://github.com/hiu154/hand-gesture-volume-control.git
cd hand-gesture-volume-control

# Install dependencies
pip install -r requirements.txt

About

A Python project that uses OpenCV and MediaPipe to recognize hand gestures in real time and control the system volume. Pinch or move your fingers to increase or decrease volume just by moving your hand in front of the camera. Perfect for automation, accessibility, or touchless control experiments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages