The project allows the user to control the mouse using hand gestures captured from a webcam.
It uses:
- A camera to see the hand
- Simple finger position checks
- Basic mouse control functions
This project was built only for learning experience, not for professional or commercial use.
- Python
- OpenCV
- MediaPipe
- PyAutoGUI
- NumPy
All tools used are beginner-friendly and commonly used in computer vision projects.
- Mouse moves only when the index finger is up
- Movement is smooth and easy to control
- Mouse stops during other gestures
- Done using thumb and index finger pinch
- Uses simple delay logic to avoid mistakes
- Done using double pinch
- Two quick pinches within a short time
- Index + Middle finger up → scroll up
- Thumb up → scroll down
- Scrolling works but is not perfect
- Closed fist held for 3 seconds
- Asks for confirmation before exiting
- Webcam captures live video
- MediaPipe finds hand landmarks
- Finger positions are checked
- Simple rules decide the action
- Mouse actions are performed
- Works best with good lighting
- Very basic gesture logic
This is a small and simple project made only for learning purposes.
It helped me gain hands-on experience with computer vision and gesture-based interaction.
Even though it is basic, it provides a good foundation for more advanced projects in the future.