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.
.mp3
music playback using pygame
Gesture | Action |
---|---|
โ๏ธ V Sign | Play Music |
โ Fist | Pause Music |
๐ Thumb Right | Next Track |
๐ Thumb Left | Previous Track |
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
pip install -r requirements.txt
Contents of requirements.txt
:
opencv-python
mediapipe
PyQt6
pygame
.mp3
music files in the music/
folder.python main.py
Perform a gesture in front of your webcam and watch it control your music!
๐ View the project on GitHub