This project allows you to control your mouse cursor using hand gestures captured through your webcam. Leveraging MediaPipe library, it detects your hand movements and translates them into mouse actions using pyautogui.
Real-time Hand Detection: Uses the MediaPipe library for efficient and accurate hand detection in real-time video streams.
Mouse Movement: Control your mouse cursor by moving your hand in front of the camera.
Click Actions: Perform left-click, right-click, and drag-and-drop actions using specific hand gestures.
git clone https://github.com/jayant1211/gesture-controlled-mouse.git
pip install -r requirements.txt
- Run the main.py script:
python main.py
-
Position your hand in front of the webcam.
-
Perform hand gestures for specific functionality
-
To exit the application, press the Esc key.
mouse can be moved using index fingers.
Left click can be triggered by touching index and thumb.
Right click can be triggered by touching thumb and middle finger.
Can be triggered using Three fingers, Index, Middle and Ring.