Skip to content

nikpatil7/Gesture-Based-Volume-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Hand Volume Control

This project uses a webcam to detect hand gestures and control the system volume based on the distance between the thumb and index finger. It features a real-time volume bar that updates as you adjust the volume with your hand.

🌟 Features

  • 🎥 Real-time hand gesture detection using MediaPipe
  • 🔊 Volume control using Pycaw
  • 🌐 Web-based interface with a real-time volume bar
  • 📡 WebSocket communication for real-time updates

📸 Demo

Demo Image 1 Demo Image 2 Demo Image 3 Demo Image 4

📚 Table of Contents

⚙️ Setup

Prerequisites

  • Python 3.x
  • Node.js
  • A webcam

Installation

  1. Clone the repository:

    git clone https://github.com/nikpatil7/Gesture-Based-Volume-Control.git
    cd Gesture-Based-Volume-Control
  2. Install Python dependencies:

    pip install -r requirements.txt
  3. Install Node.js dependencies:

    cd backend
    npm install

Running the Application

  1. Start the Node.js server:

    npm start
  2. Run the Python script:

    python main.py
  3. Access the web interface: Open your web browser and go to http://localhost:3000.

🎮 Usage

  • Ensure your webcam is connected.
  • Use your hand to control the volume by adjusting the distance between your thumb and index finger.
  • The volume bar on the web interface will update in real-time to reflect the current volume level.

📦 Dependencies

Python

  • OpenCV
  • MediaPipe
  • NumPy
  • Pycaw
  • Requests

Node.js

  • Express
  • WS (WebSocket)

You can find the complete list of dependencies in the requirements.txt and package.json files.

About

Hand Gesture-Driven Volume System lets users adjust their computer’s volume using hand gestures, providing real-time visual feedback on a web interface. It combines gesture tracking, audio control, and live updates to create an intuitive and interactive experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors