Giter Site home page Giter Site logo

controlling_volume_using_hand-gestures's Introduction

Hand Gesture Volume Control

Hand Gesture Volume Control Python OpenCV

Overview

Control your system volume with the wave of your hand! This project uses a webcam to capture real-time hand movements and adjusts the volume based on the distance between your thumb and index finger.

Features

  • Real-time Hand Tracking: Utilizes MediaPipe for accurate hand detection.
  • Volume Control: Adjust system volume by varying the distance between your thumb and index finger.
  • Visual Feedback: Interactive graphics to show current volume and hand landmarks.

Table of Contents

Requirements

  • Python 3.x
  • OpenCV
  • MediaPipe
  • PulseAudio

Installation

  1. Clone the repository:

    git clone https://github.com/harshaparida/Controlling_volume_using_hand_gestures.git
    cd hand-gesture-volume-control
  2. Install the required packages:

    pip install opencv-python mediapipe pulsectl

Usage

Run the following command to start the volume control application:

python hand_gesture_control.py

How It Works

  1. Capture Video: The webcam captures video frames.
  2. Process Frames: MediaPipe processes the frames to detect hand landmarks.
  3. Calculate Distance: The distance between the thumb and index finger is calculated.
  4. Adjust Volume: The system volume is adjusted based on the distance.

Visual Feedback

  • Hand Landmarks: The thumb and index finger are highlighted with green circles.
  • Connecting Line: A green line connects the thumb and index finger.
  • Background Color: The background color changes based on the volume level.
  • Volume Display: Current volume percentage is displayed on the frame.

Enhance your multimedia experience with just a wave of your hand. Happy coding!


controlling_volume_using_hand-gestures's People

Contributors

harshaparida avatar

Stargazers

 avatar Ashis Moharana avatar TheCodeCrafting avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.