Python Gesture-Controlled Virtual Mouse with Computer VisionPython Gesture-Controlled Virtual Mouse with Computer Vision
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Developed a Python-based virtual mouse that enables users to control their computer cursor using hand gestures captured through a webcam. The project uses OpenCV and MediaPipe for real-time hand tracking and PyAutoGUI to translate gestures into mouse actions.
Key Features:
1. Real-time hand detection and tracking.
2. Cursor movement based on hand movements.
3. Left-click using a thumb-and-index-finger pinch gesture.
4. Right-click using a thumb-and-middle-finger pinch gesture.
6. Drag-and-drop functionality through a sustained pinch gesture.
7. Scroll control using a two-finger gesture.
8. Adjustable cursor sensitivity and movement modes.
9. Pause and resume controls, with an emergency exit mechanism.
10. Motion smoothing to reduce cursor jitter and improve tracking stability.
Technologies: Python, OpenCV, MediaPipe, PyAutoGUI, Computer Vision.
The project demonstrates the practical application of computer vision and gesture recognition to create an alternative method of interacting with a computer without relying on a physical mouse.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started