Skip to content

JaNigam/Virtual-AI-Mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual-AI-Mouse

Modules used: mediapipe, pyautogui and opencv

Process

  1. Initializing camera, setup, plotting using opencv.
  2. Obtaining hand landmarks using mediapipe.
  3. Focussing only on 2 landmarks: 8->Index Finger Tip, 12->Middle Finger Tip.
  4. Hovering mouse using index finger.
  5. Register a click by bringing two fingers (middle and index) closer.

To run:

  1. Simply Run main.py.
  2. Fps display functionality can be achieved by uncommenting the triple Quote comments.

Optimizations:

  1. Shifting the purple rectangle up, since bottom access becomes difficult. - Done
  2. Removing numpy and math imports by adding onlt required self made functions. to reduce code complexity and for better optimization.
  3. Further smoothening of movement and clicks.
  4. Optimizations for specific softwares for pointer to work with.eg: Paint, On-Screen Keyboard etc.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages