Skip to content

namas191297/mouse_gesture_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gesture Control with MMPose

Gesture Control with MMPose is a project that enables controlling your mouse cursor and performing mouse clicks using hand gestures detected through MMPose, a pose estimation library., with the help of OpenCV and PyAutoGUI,

Demo

Watch the demo

Table of Contents

Installation

MMPose Installation

MMPose is a critical component of this project, and it needs to be installed separately. Follow the steps on the MMPose website to install it correctly. https://mmpose.readthedocs.io/en/latest/

  1. Clone the repository:
git clone https://github.com/namas191297/mouse_gesture_control
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Set the MMPose path in inference.py on line 1 to line 3.
import sys
MMPOSE_PATH = '/path/to/mmpose/'
sys.path.append(MMPOSE_PATH)

Usage

  1. Run the main script.
python gesture_control.py
  1. Follow the instructions displayed on the screen to enable or disable gesture control.

Downloading Models

Before running the script, download the required MMPose models and move them into the saved_checkpoints folder. You can find the models here.

Dependencies

  • Python 3.x
  • OpenCV
  • NumPy
  • MMPose
  • PyAutoGUI

License

This project is licensed under the MIT License.

About

Controlling the mouse using hand gestures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages