The Virtual Mouse and Gesture Control project enables seamless, touch-free interaction with a computer using hand gestures detected by MediaPipe. It simulates a real mouse, allowing users to navigate, click, and control their system with intuitive hand movements.
Additionally, the project expands into gesture-based gaming controls and presentation navigation, providing a hands-free experience for various applications.
- 🎯 Hand Tracking with MediaPipe: Detects hand landmarks and tracks movements.
- 🖱 Virtual Mouse Control: Move the cursor and perform clicks using hand gestures.
- 🎮 Game Control: Play racing games with W, A, S, D gestures.
- 📊 Gesture-Based Presentation Control: Navigate slides and zoom in/out using gestures.
- 📱 DroidCam Integration: Use a smartphone as an external webcam.
- ⚡ Fast and Lightweight: Efficient implementation using Python and OpenCV.
- Uses MediaPipe for hand tracking.
- Adjusts hand landmarks to screen dimensions.
- Detects finger distances to simulate mouse clicks.
- Cursor dynamically follows the index finger.
- Adapts gesture detection for controlling keyboard inputs.
- Implements W, A, S, D controls for racing games.
- Uses DroidCam for smartphone-based webcam functionality.
- Enables gesture-controlled slide navigation.
- Supports actions like zooming and paging during presentations.
- Clone the repository
git clone https://github.com/Ayush-Aditya/virtual-mouse.git cd virtual-mouse
- Install Dependencies
pip install -r requirements.txt
- Run the Virtual Mouse
python VIRTUAL_MOUSE.py
- Python 3.7+
- OpenCV
- MediaPipe
- PyAutoGUI
- NumPy
This project is ideal for: ✅ Tech Enthusiasts & Developers exploring gesture recognition. ✅ Gamers looking for an immersive hands-free experience. ✅ Presenters & Educators who want smooth slide navigation. ✅ Accessibility Advocates improving human-computer interaction.
- 🤖 Human-Computer Interaction: Future of touchless interfaces.
- 🎮 Gaming Industry: Enhancing immersive experiences.
- 🔍 Assistive Technology: Empowering users with disabilities.
Ayush Aditya
📌 GitHub | 📌 LinkedIn
This project is licensed under the MIT License. Feel free to use and enhance it!
🌟 If you like this project, don't forget to star ⭐ the repository!