Skip to content

Agnik7/Adjusting-Volume-Using-Gestures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Gesture-based Volume Control with Python 🖐️🔊

1. Introduction

Welcome to the Gesture-Based Volume Control Python project! This project brings to you an innovative way to control the volume of your device using hand gestures. By leveraging computer vision and machine learning techniques, the script tracks the user's hand movements through the device camera and adjusts the volume accordingly. Say goodbye to fumbling for the volume buttons; just raise your hand and let the code handle the rest!

2. Description

This Python script utilizes the power of OpenCV for image processing and the Mediapipe library for hand tracking. The combination of these libraries enables real-time hand tracking and gesture recognition from the webcam feed. As the distance between the thumb and index finger increases, the volume increases and vice versa.

For a step-by-step explanation of the code, feel free to visit my blog by clicking here

3. How to Run the Code

To experience the magic of gesture-based volume control, follow these steps:

3.1. Clone the Repository

Begin by cloning this GitHub repository to your local machine. You can do this by executing the following command in your terminal or command prompt:

git clone https://github.com/Agnik7/Adjusting-Volume-Using-Gestures.git

3.2 Install Dependencies

Ensure you have Python installed on your system. Additionally, you need to install the required Python packages, listed in the requirements.txt file, to execute the script successfully. You can install the dependencies using pip as follows:

pip install -r requirements.txt

3.3 Execute the Program

After installing the dependencies, run the program using the following command:

python volume_hand_gestures.py

Feel free to explore the code and customize it to suit your preferences. Enjoy the hands-free volume control experience! 🎶👋

4. Author

Agnik Bakshi

About

Code to adjust the device's volume using hand gestures.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages