https://github.com/lokendarjangid/virtual-mouse-new
This is a virtual mouse which can be controlled by hand gestures. It is made using python and opencv. It can be used to control the mouse pointer and also to perform left click and right click.
https://github.com/lokendarjangid/virtual-mouse-new
mouse opencv pyautogui python
Last synced: about 2 months ago
JSON representation
This is a virtual mouse which can be controlled by hand gestures. It is made using python and opencv. It can be used to control the mouse pointer and also to perform left click and right click.
- Host: GitHub
- URL: https://github.com/lokendarjangid/virtual-mouse-new
- Owner: lokendarjangid
- Created: 2022-11-12T15:52:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T05:52:28.000Z (over 2 years ago)
- Last Synced: 2024-12-10T17:40:01.308Z (over 1 year ago)
- Topics: mouse, opencv, pyautogui, python
- Language: Python
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# virtual-mouse-new
This is a virtual mouse which can be controlled by hand gestures. It is made using python and opencv. It can be used to control the mouse pointer and also to perform left click and right click.

## Requirements
- Python 3.8 or above
- OpenCV
- Numpy
- PyAutoGUI
## How to use
- Clone the repository
- Run ```pip install -r requirements.txt``` in cmd
- Run the `main.py` file
- Make sure that the camera is on and the hand is in the frame
- Use the following gestures to control the mouse pointer
| Gesture | Action |
| --- | --- |
| Move Index Finger | Move the mouse pointer |
| Touch Index and Middle Finger | Left click |
| Increase or Decrease Distance b/w Index Finger and Thumb | Volume |
| Touch Index, Middle and Ring Finger. Move hand Up and Down | Scroll page |