Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.8 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.8 KB

Gesture Controlled Mouse

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.

Video Tutorial

Features

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.

Installation

Clone the repository:

git clone https://github.com/jayant1211/gesture-controlled-mouse.git

Install the required Python packages:

pip install -r requirements.txt

Usage

  1. Run the main.py script:
python main.py
  1. Position your hand in front of the webcam.

  2. Perform hand gestures for specific functionality

  3. To exit the application, press the Esc key.

Gestures

1. Mouse Movement

mouse can be moved using index fingers.

Alt text

2. Left Click

Left click can be triggered by touching index and thumb.

Alt text

3. Right Click

Right click can be triggered by touching thumb and middle finger.

Alt text

4. Hold and Drag

Can be triggered using Three fingers, Index, Middle and Ring.

Alt text