Gesture Control

This project is a gesture-controlled music player that allows you to control music playback using simple hand gestures in front of your webcam. It uses computer vision to detect hand positions and interprets gestures to play, pause, or switch tracks.

โœจ Features

โœ‹ Supported Gestures

Gesture Action
โœŒ๏ธ V Sign Play Music
โœŠ Fist Pause Music
๐Ÿ‘‰ Thumb Right Next Track
๐Ÿ‘ˆ Thumb Left Previous Track

๐Ÿงฑ Project Structure

gesture_control/
โ”‚
โ”œโ”€โ”€ main.py              # Entry point
โ”œโ”€โ”€ modules/
โ”‚   โ”œโ”€โ”€ camera.py        # Webcam frame capture
โ”‚   โ”œโ”€โ”€ gesture.py       # Gesture detection
โ”‚   โ”œโ”€โ”€ music_player.py  # Music playback control
โ”‚   โ”œโ”€โ”€ controller.py    # Gesture โ†’ Action mapping
โ”‚   โ””โ”€โ”€ gui.py           # PyQt6 GUI
โ””โ”€โ”€ music/               # Folder for your MP3 files

โš™๏ธ Requirements

pip install -r requirements.txt

Contents of requirements.txt:

opencv-python
mediapipe
PyQt6
pygame

โ–ถ๏ธ How to Use

  1. Place your .mp3 music files in the music/ folder.
  2. Run the program:
python main.py

Perform a gesture in front of your webcam and watch it control your music!

๐Ÿงช Example Usage

๐Ÿ”— View the project on GitHub