Skip to content

Latest commit

 

History

History
28 lines (14 loc) · 1.35 KB

README.md

File metadata and controls

28 lines (14 loc) · 1.35 KB

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