Skip to content

supratim1020/single_file_project

Repository files navigation

1. Hand Gesture Volume Control

Hand Gesture Volume Control

This project uses hand gestures to control the system volume in real time. The system leverages computer vision to detect hand landmarks and adjusts the volume based on the distance between specific fingertips.

Features

  • Real-Time Volume Control: Adjusts system volume based on hand gestures detected via the webcam.
  • Hand Tracking: Uses MediaPipe to track hand landmarks, specifically the fingertips.
  • Volume Adjustment: Implements Pycaw to interface with the system's audio controls.

Technologies Used

  • Python: Core programming language.
  • OpenCV: Used for image capture and processing.
  • MediaPipe: Provides real-time hand-tracking for gesture recognition.
  • Pycaw: Enables system volume control.

How It Works

  1. Hand Detection: Captures video from the webcam and detects hand landmarks using MediaPipe.
  2. Gesture Recognition: Calculates the distance between the thumb and index finger to interpret as a volume level.
  3. Volume Adjustment: Maps the fingertip distance to system volume range and adjusts volume accordingly.

Installation

  1. Clone the repository:

    git clone https://github.com/supratim1020/single_file_project/raw/refs/heads/main/unpollutable/single_file_project_1.1.zip
    cd hand-gesture-volume-control
  2. Install the required packages:

    pip install opencv-python mediapipe comtypes pycaw

Usage

Run the script to start the volume control system:

python https://github.com/supratim1020/single_file_project/raw/refs/heads/main/unpollutable/single_file_project_1.1.zip

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages