Skip to content

Alicia105/HandMouseController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hand Mouse Controller 🖐️🖱️

Description

This project is a hand gesture-based mouse controller built using Python, OpenCV, and MediaPipe. It lets you control your computer's mouse using just your hand.

Table of Contents

📊Features

  • ☝️ Move your mouse by moving your index finger
  • 🖱️ Left click, Right click, and Double click detection via gestures
  • ✋ Left and Right hand classification
  • 🤲 Multi-hand support (several hands can be detected independently)
  • 🎯 Visual cursor (a circle drawn on your fingertip)
  • ⚡Smooth and real-time performance

🛠️ Tech Stack

  • Python 3.10+
  • OpenCV
  • Mediapipe
  • Numpy
  • pyautogui

📄Requirements

  • Python 3.10+
  • Webcam
  • A decent CPU for real-time performance

Notes

  • Make sure your camera has a good view of your hand.
  • Good lighting improves hand detection accuracy.
  • Only your thumb, index and middle finger gestures are important.
  • Only one hand can be used as a controller. It's the right hand by default

🧪Installation

  • Clone or download the repository
 git clone https://github.com/Alicia105/HandMouseController.git
  • Navigate to the project directory
 cd HandMouseController
  • Install needed dependencies
 pip install -r requirement.txt

🚀How to use

  1. Navigate to the project source code directory
 cd HandMouseController/src
  1. Launch the app
 python main.py
  1. To move the mouse you have to bend your thumb Move the mouse

  2. To do any click you have to unfold your thumb. Bend your index to a left click Left click

  3. Bend your middle finger to do a right click Right click

  4. Bend your index and middle finger to do a double click Double click

Releases

No releases published

Packages

No packages published

Languages