/reTerminal-virtual-mouse

Primary LanguagePythonApache License 2.0Apache-2.0

reTerminal Virtual Mouse Demo Application

Light

Sample application for using hand landmarks MediaPipe model for controlling the mouse on Seeed Studio reTerminal. Will work on Linux PC and other SBCs as well, provided necessary requirements are met.

Installation

Install additional dependencies:

pip3 install -r requirements.txt

Install MediaPipe package - for faster inference install 64 bit version.

Download the models, extract and place .tflite files inside of models directory.

Usage

Run

DISPLAY=:0 python3 virtual_mouse.py

from the project main folder.

Use index finger to control mouse cursor, close the palm to press and hold left mouse button for dragging, open the palm to release the left mouse button.

Acknowledgements and license

This project is based on other two projects from Github:

TO-DO

  • Pre-trained models published under MIT License
  • Better models, with increased accuracy for most important gestures
  • On-device data collection and training to support user-defined gestures
  • Support for Raspberry Pi camera