Skip to content

This project aims to control the system volume and screen brightness using hand gestures. Use your left hand for brightness control and right hand for volume control. For detection of hand landmarks, mediapipe library is used.

License

Notifications You must be signed in to change notification settings

i5han2/Volume_and_Brightness_Control_Using_Hand_Gestures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Volume_and_Brightness_Control_Using_Hand_Gestures

This project aims to control the system volume and screen brightness using hand gestures. Use your left hand for brightness control and right hand for volume control. For detection of hand landmarks, mediapipe library is used.

DEMO

demo_vid.mp4

How to run this script

  • Clone this repo
git clone <url>
  • Install virtual environment
pip install virtualenv
  • Create a virtual environment
virtualenv venv
  • Activate virtual environment
venv\Scripts\activate
  • Install all the dependencies
pip install -r requirements.txt
  • Run the script
python volBrtnessControl.py

Explanation

The code uses mediapipe library to detect hand landmark positions and handedness. If the frame detects one hand, it finds out if its a left hand or right hand and triggers the brightness contreol and volume control function respectively. If the current frame contains both hands, both volume and brightness control functions are triggered simultaneously in different threads.

About

This project aims to control the system volume and screen brightness using hand gestures. Use your left hand for brightness control and right hand for volume control. For detection of hand landmarks, mediapipe library is used.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages