Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 1.88 KB

README.md

File metadata and controls

52 lines (30 loc) · 1.88 KB

Virtual Mouse Controled by Hand Gestures

Control your mouse only with your hand gestures!!!

Demo.mp4

Description

This project is a virtual mouse that can be controlled by hand gestures. The hand gestures are detected by a camera and the mouse is controlled by the hand movements. The project is implemented using OpenCV and MediaPipe.

Detecting Hand Gestures

These are the hand gestures and the corresponding actions that can be performed using the virtual mouse.

Hand Gesture Action
Move Pointer Move the mouse pointer
Left Click Click the left mouse button
Right Click Click the right mouse button
Scroll Up Scroll up
Scroll Down Scroll down
Terminate Terminate the program

Getting Started

1. Clone the repository

Clone the repository to your local machine using the following command.

git clone https://github.com/Irash-Perera/VirtualFingerMouse.git

2. Install the required libraries

Install the required libraries using the following command.

pip install -r requirements.txt

3. Run the program

Hit the run button on virtual_mouse.py file to run the program.

Note: Make sure that the camera is connected to the computer. Also if you are not using the default camera, change the camera index in the cv2.VideoCapture() function in the virtual_mouse.py file.

Enjoy!!! 😁