This is a simple python script that uses OpenCV to detect the volume of a video stream and adjust the volume of the system accordingly. The script uses the mediapipe
library to detect the hand landmarks and calculate the volume based on the distance between the thumb and the index finger.
-
Clone the repository
git clone https://github.com/Polymath-Saksh/Vision-Volume-Control.git
-
Install the required libraries
pip install -r requirements.txt
test-vol.webm
-
Run the script
python main.py
-
Adjust the volume by moving your hand up and down. The volume will be adjusted based on the distance between the thumb and the index finger.
This project is licensed under the MIT License - see the LICENSE file for details.