A Python application that lets you control your PC and create macros based on hand gestures detected via your webcam. Uses MediaPipe for gesture detection and pynput for media key control.
- Detects gestures like open palm, peace sign, fist, open index finger, and more
- Swipe gestures (open palm left/right) for next/previous track
- Circular gestures (with index finger) for volume control
- Easily extendable with new gesture patterns
- Python 3.8+
- pip
- Webcam
- Clone this repository or copy the files to your project directory.
- Install the required Python packages:
pip install -r requirements.txt
Run the main controller script:
python main.py
- On macOS, you may need to grant accessibility permissions to Python for media key control.
- For best results, use in a well-lit environment with your hand clearly visible to the camera.
- You can adjust the camera resolution in
video_capturer.py
.