Skip to content

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.

License

Notifications You must be signed in to change notification settings

Polymath-Saksh/Vision-Volume-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vision Volume Control License: MIT Made with Python

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.

Installation

  • Clone the repository

    git clone https://github.com/Polymath-Saksh/Vision-Volume-Control.git
  • Install the required libraries

    pip install -r requirements.txt

Usage

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages