This Python project utilizes OpenCV to control the volume of your computer using hand gestures. It calculates the distance between the thumb and index finger to determine the desired volume level.
- Control volume using hand gestures
- Calculates distance between thumb and index finger for precise control
- Adjust volume in real-time based on hand movement
- Python 3.x
- OpenCV
Clone the repository to your local machine
$ git clone https://github.com/prashasth-nair/volume-control-gesture.git
Install the required libraries using the following command
$ pip install -r requirements.txt
Run the script
$ python volume_control.py
- The script captures video feed from the default camera.
- Position your hand in front of the camera with your thumb and index finger extended.
- Move your hand closer or further apart to adjust the volume level.