Skip to content

vnguyen243/gesture_volume_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

βœ‹ Hand Gesture Volume Control

A simple computer vision project that allows you to control your system volume using hand gestures (thumb & index finger distance).
Built with OpenCV and MediaPipe.

πŸŽ₯ How It Works

  • Opens webcam and tracks your hand in real-time
  • Detects index fingertip (id=8) and thumb tip (id=4)
  • Measures distance between them:
    • Far apart β†’ Volume Up
    • Close together β†’ Volume Down

πŸ› οΈ Tech Stack

  • OpenCV – Image capture and drawing
  • MediaPipe – Hand landmark detection
  • PyAutoGUI – Sending volume key presses

πŸ“‚ Usage (Run Locally)

  1. Clone the repository
    git clone https://github.com/vnguyen243/gesture_volume_control.git
    cd gesture_volume_control
  2. Create virtual environment
    python -m venv venv
    source venv/bin/activate   # On Windows: venv\Scripts\activate
  3. Install dependencies
    pip install -r requirements.txt
  4. Run the scripts
    python volume_control.py
  5. Exit Pres Ctrl+C to close the program

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages