Skip to content

Implementation of a virtual mouse using hand gestures.

Notifications You must be signed in to change notification settings

Lahari03/MotionMouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Motion Mouse

forthebadge made-with-python
OpenCV
AI Virtual Mouse 🖱️

The Motion Mouse is a virtual mouse that allows you to control your computer using hand gestures. This project uses computer vision and machine learning techniques to detect your hand gestures and simulate mouse movements and clicks. With the Motion Mouse, you can control your computer without touching a physical mouse, which can be particularly useful in situations where a physical mouse is not available or comfortable to use, such as when giving presentations, playing games, or simply when you want to give your wrist a break.

Main-Image

How It Works

The Motion Mouse uses the following technologies:

  • Python 3.7 or higher
  • OpenCV: an open-source computer vision library that provides a set of tools and algorithms for real-time image processing and analysis.
  • MediaPipe: a cross-platform framework for building multimodal machine learning pipelines that can process and analyze audio, video, and other sensor data.
  • PyAutoGUI: a Python module for automating keyboard and mouse movements, which allows the Motion Mouse to simulate mouse clicks and movements on your computer.

How to Run

  1. Install the required libraries: pip install -r requirements.txt
  2. Run the main file: python motion_mouse.py
  3. Hold your hand up in front of the camera and use the specified hand gestures to control the mouse.

Features

Feature Description
Hand Detection Detects hand landmarks in real-time using Mediapipe
Mouse Movement Moves the mouse cursor based on the position of the detected hand
Left Click Simulates a left mouse click when the thumb and index finger are close together
Right Click Simulates a right mouse click when the index and middle finger are close together

Hand-Landmarks

Future Improvements

Improvement Description
Multi-hand support Add the ability to detect and control multiple hands simultaneously
Gesture customization Allow users to define their own hand gestures for controlling the mouse
Keyboard shortcuts Add support for keyboard shortcuts using hand gestures
GUI Create a graphical user interface for the application
Hand tracking improvement Improve the hand detection algorithm to better handle occlusions and complex hand poses

Feel free to contribute to this project by submitting pull requests or creating issues on the GitHub repository!

About

Implementation of a virtual mouse using hand gestures.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages