Skip to content

Sappymukherjee214/virtual-mouse-keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

virtual-mouse-keyboard

This project allows you to control your computer's mouse and a virtual keyboard using hand gestures detected through your webcam. It is built with Python using OpenCV, MediaPipe, and PyAutoGUI.

License: MIT Python Platform OpenCV


Features ✨

  • 🧠 Mode Switching: Seamlessly switch between Mouse, Keyboard, and Neutral modes with a fist gesture.
  • 🎯 Smoothed Mouse Control: Jitter-free cursor movement that follows your index finger.
  • 🀏 Gesture-Based Clicks: Perform a left-click by pinching your index finger and thumb.
  • ⌨️ Virtual Keyboard: Type on a screen-rendered keyboard using a dwell-to-type mechanism.

βš™οΈ Setup and Installation

  1. Clone the repository or create the file structure: Ensure you have the files main.py, utils.py, gestures.md, and README.md in a folder named virtual-mouse-keyboard.

  2. Install dependencies: Open your terminal and run the following command to install the required Python libraries.

    pip install opencv-python mediapipe pyautogui numpy

▢️ How to Run

Navigate to the project directory in your terminal and run the main script:

cd path/to/virtual-mouse-keyboard
python main.py

πŸ“Έ A window will open showing your webcam feed. Press 'q' to quit the application at any time.

πŸ‘‰ Refer to gestures.md for a full guide on how to control the application.


πŸ“Έ Demo

Coming Soon: A GIF or short demo video showing the mouse and keyboard in action!


πŸ“ƒ License

This project is licensed under the MIT License


πŸ™Œ Contributing

Pull requests are welcome! For major changes, open an issue first to discuss what you’d like to change.


⭐ Show Your Support

If you like this project, leave a ⭐ on the repo and share it with your peers!


πŸ”— Connect

πŸ‘¨β€πŸ’» Developed by: Saptarshi Mukherjee

LinkedIn Twitter Gmail Instagram Facebook GitHub

About

πŸš€ Control your PC with Hand Gestures! A futuristic AI-powered Virtual Mouse & Keyboard built using Python, OpenCV, and MediaPipe. Touchless interaction made seamless.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages