A hand gesture-controlled virtual mouse built using Python, OpenCV, and MediaPipe. This project allows users to control the computer cursor using finger movements captured through a webcam.
- Move cursor using hand gestures
- Left click functionality
- Real-time hand tracking
- Smooth cursor movement
- Webcam-based interaction
- Built with Computer Vision techniques
- Python
- OpenCV
- MediaPipe
- PyAutoGUI
- NumPy
The webcam captures hand movements in real time. MediaPipe detects hand landmarks and tracks finger positions. Specific gestures are mapped to mouse actions like cursor movement and clicking.
Clone the repository:
git clone https://github.com/priscilla1207/virtual-mouse.gitMove into the project folder:
cd virtual-mouseInstall dependencies:
pip install opencv-python mediapipe pyautogui numpypython mouse.py| Gesture | Action |
|---|---|
| Index Finger Up | Move Cursor |
| Index + Middle Finger Close | Left Click |
- Right click support
- Drag and drop functionality
- Volume control gestures
- Multi-hand support
- Improved gesture accuracy
Completed and open-source on GitHub.
⭐ This project has received 50+ stars on GitHub.
- Right click support
- Drag and drop gestures
- Volume and brightness control
- Multi-hand gesture support
- Improved cursor smoothing
https://github.com/priscilla1207/virtual-mouse/assets/
Priscilla1207