Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.37 KB

File metadata and controls

42 lines (26 loc) · 1.37 KB

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