A gesture-controlled virtual mouse that allows users to control cursor movement, clicking, and holding actions using real-time hand gestures with computer vision.
๐ Features
- Move cursor using index finger
- Click using thumb + middle finger
- Hold mouse using all 5 fingers
- Smooth and real-time tracking
- Works with webcam
๐ ๏ธ Technologies Used
- Python
- OpenCV
- MediaPipe
- PyAutoGUI
๐ฆ Installation
Install required libraries:
pip install opencv-python mediapipe pyautogui
python finger_mouse.py
Download the model file from: https://storage.googleapis.com/mediapipe-models/hand_landmarker/hand_landmarker/float16/1/hand_landmarker.task
Place it in the same folder as the Python file.
๐ฎ Controls
- Index Finger โ Move Cursor
- Thumb + Middle Finger โ Click
- All 5 Fingers โ Mouse Hold
๐ Future Improvements
- Right-click gesture
- Scroll functionality
- Improved accuracy
๐ผ Author
Narla Vamshi
โญ Support
If you like this project, give it a โญ on GitHub!