A mini project using AI and ML to control the mouse cursor using hand gestures.
Cursor-Wave is a gesture-controlled mouse built with Python. It uses computer vision and machine learning to detect hand movements through a webcam and translates them into mouse movements and clicks.
With the help of MediaPipe, OpenCV, and PyAutoGUI, this application detects the position of your fingers in real time and allow to:
- Move the cursor using your index finger
- Perform a left-click when your index finger and thumb touch
- Perform a right-click when your thumb and middle finger touch
✔ Real-time hand tracking with MediaPipe
✔ Cursor movement mapped to finger tip
✔ Left click via index and thumb touch
✔ Right click via middle finger and thumb touch
✔ Natural interaction using webcam
- Python 3.x
- OpenCV
- MediaPipe
- PyAutoGUI
- NumPy
-
Install Python 3.6 or above.
-
Clone or download the project folder.
git clone https://github.com/Sneh0510/Cursor-Wave.git cd cursor-wave -
Install the required libraries using pip:
pip install opencv-python mediapipe pyautogui numpy -
Run the script:
python cursor_wave.py -
Use your hand in front of the webcam to control the mouse.
Press ESC to quit.
- Add gesture customization via GUI
- Scroll functionality using finger gestures
- Multi-hand gesture support
- More stable gesture detection with fine-tuned thresholds
- MediaPipe by Google
- OpenCV
- PyAutoGUI
- NumPy
Developed by Sneh Yadav
GitHub: https://github.com/sneh0510