Skip to content

Virtual Mouse Pad using OpenCV, mediapipe and pyautogui

Notifications You must be signed in to change notification settings

Abhi-0212000/Virtual-Mouse-Pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Virtual-Mouse-Pad | Gesture controlled mouse pad

Virtual Mouse Pad & Control using OpenCV, mediapipe and pyautogui

Follow this repository to implement your own __Virtual__ __Mouse__ __Pad__.

Overview of how this project is implemented:

  1. We start capturing video and drawing the Virtual Mousepad Region on every frame.
  2. If the hand is detected in the frame, we take landmark points of index finger tip, thumb tip, and middle fingertip.
  3. We check if index fingertip is inside virtualMousePadRegion or not. If YES then we go for mouse tracking with gesture functionality. If NO then we read the next frame.
  4. We implement logic to track the movement of index finger tip and we use that information to move mouse pointer.
  5. We also implement logics for right click, left single click and left double click mouse functionalities.

Check out the images at the end of this file to understand the logic for coordinate transformations and other calculations used in code.

Demo Video:

VirtualMousePadAndControlUsingOpenCV.mp4

coordinateSystem calculations

About

Virtual Mouse Pad using OpenCV, mediapipe and pyautogui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages