/virtual_mouse

This is virtual mouse python code using mediapipe library and PyAutoGUI library

Primary LanguagePythonMIT LicenseMIT

Virtual Mouse

This is virtual mouse python code using mediapipe library and PyAutoGUI library.

The gesture of a single hand is used and when only one finger is spread, it is in Moving mode, and when two fingers are joined, a Click is performed.

Requirements

  • mediapipe
  • pyautogui

You can install it from PyPI:

pip install mediapipe
pip install pyautogui

Mediapipe

Mediapipe is an open-source framework for building multimodal (eg. video, audio, etc.) applied ML pipelines. It provides a way to develop, test, and deploy machine learning models for various applications like hand tracking, object detection, and more. With Mediapipe, you can build custom pipelines using a set of pre-existing components, as well as create new ones. The framework is optimized for real-time performance on mobile, desktop, and cloud platforms.

PyAutoGUI

PyAutoGUI is a Python module for programmatically controlling the mouse and keyboard. It allows you to automate mouse clicks, movements, and scrolling. You can also simulate keyboard input and manage windows. PyAutoGUI is useful for automating repetitive tasks and for testing GUI applications. It works on Windows, macOS, and Linux.