Control your keyboard using hand gestures captured from your webcam using AI-powered hand tracking.
This Python project uses Mediapipe, OpenCV, and PyAutoGUI to map finger gestures into directional keyboard commands (up, down, left, right).
- π€ Real-time hand tracking with Mediapipe
- βοΈ Finger gesture detection (Thumb, Index, Middle, etc.)
- β¨οΈ Keyboard control with gestures:
- 4+ fingers: Jump (β)
- 0 fingers: Slide (β)
- 1 finger (left side): Move Left (β)
- 1 finger (right side): Move Right (β)
- π Cooldown system to avoid repeated triggers
- π Live gesture feedback on screen
- Python
- OpenCV
- Mediapipe
- PyAutoGUI
-
Clone the repository
git clone https://github.com/aartisonigra/hand-gesture-controller.git cd hand-gesture-controller
2.Install dependencies:
pip install opencv-python mediapipe pyautogui
3.Run the script:
python app.py
π Project Structure
hand-gesture-controller/ βββ hand_gesture_control.py # Main Python script βββ README.md # This file βββ .gitignore # Git ignored files