https://github.com/omarmdiab/virtual-mouse-and-keyboard
A python app that utilizes mediapipe and opencv for controlling mouse and keyboard
https://github.com/omarmdiab/virtual-mouse-and-keyboard
hand-recognition mediapipe nircmd
Last synced: 2 days ago
JSON representation
A python app that utilizes mediapipe and opencv for controlling mouse and keyboard
- Host: GitHub
- URL: https://github.com/omarmdiab/virtual-mouse-and-keyboard
- Owner: OmarMDiab
- Created: 2024-01-28T13:00:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-22T20:20:54.000Z (7 months ago)
- Last Synced: 2025-03-11T19:36:27.813Z (3 months ago)
- Topics: hand-recognition, mediapipe, nircmd
- Language: Python
- Homepage:
- Size: 69 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PC Controller
This Python script utilizes the MediaPipe library for hand tracking and the NirCmd utility to create a virtual mouse and keyboard interface. The program enables users to control their computer by detecting hand gestures through the camera.
## Prerequisites
- [**NirCmd**](https://www.nirsoft.net/utils/nircmd.zip)
- **OpenCV**
- **MediaPipe**## Usage
In My project there are 2 modes
- Mode 1: Volume and Brightness Controls **(Keyboard)**
- Mode 2: **(Mouse Control)**
- **Switch Gestures**
- **mode 1 <==> mode 2**### Mode 1
**Volume Control**- 1 finger raises volume
- 2 fingers lowers volume**Brightness Control**
- 3 fingers raises brightness
- 4 fingers lowers brightness### Mode 2
In this mode, the script enables virtual mouse control, The following mouse actions are supported:
- **Move Cursor**
- **Left Click**
- **Right Click**
- **Double Click**
- **Scroll Up**
- **Scroll Down**
- **Drag And Drop**