Skip to content

rishabh1402/Virtual_Mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Virtual_Mouse

What it does

An AI-based mouse controller, that can be used as an alternative to the device.

How it works

  • Detects the Index & Middle fingers
  • Detects which finger pointing up
  • If Index Finger Up (☝) => Move Operation : The mouse will move according to your hand movements.
  • If Index & Middle Finger Up (✌) => Click Operation : Click anything on the screen, like how we normally do.

How is it built

  • Hand Detection Module : Class containing the methods to detect hands & hand's postion.
  • Python's cv2 and mediapipe libraries : Provide the modules and methods to get hand landmarks and draw shapes to mark them.

Prerequisite

  • Pyhton >= 3.8.

Steps to Download

  • Download and Extract the zip file.
  • Open in the files in any text editor.
  • Create an virtual environment to install the related libraries (in terminal).
py -m venv env
  • Activate the virtual environment.
env\Scripts\activate
  • Install the below mentioned libraries.
pip install opencv-python
pip install numpy
pip install pyautogui
  • Execute the vmouse.py to run the program.

Demo

Video Reference: Virtual Mouse


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages