Hand Gesture-Based Volume Control with API

This project leverages computer vision and audio control libraries to create a real-time hand gesture-based volume control system with API endpoints for automation.

Table of Contents

Features

  • Real-time hand landmark detection using MediaPipe.
  • Volume control based on the distance between the thumb and index finger.
  • Visual feedback with landmarks, connections, and a volume bar.
  • FPS display for performance monitoring.
  • API endpoints for starting and stopping the volume control.

Installation

Prerequisites

Ensure you have the following installed:

  • Python 3.7+
  • A webcam

Dependencies

Install the necessary libraries using pip:

pip install opencv-python mediapipe numpy comtypes pycaw flask