takeyamayuki / NonMouse

a webcam-based virtual gesture mouse that is easy to use with hands on the desk.
https://zenn.dev/ninzin/articles/94b05fdb9edf53
Apache License 2.0
117 stars 14 forks source link
gesture gesture-control gestures hands hci human-computer-interaction mediapipe mouse opencv pynput python
a webcam-based virtual gesture mouse that is easy to use with hands on the desk


Features

Installation

πŸ“ Executable file

Download the zip file that matches your environment from the latest release.

OR

🐍 PyPI

Run the following script.

$ pip install nonmouse

(If you have trouble installing mediapipe, please visit the official website.)

Usage

1. Install a camera

The following three ways of placing the device are assumed.

2. Run

3. Settings

When you run the program, You will see a screen similar to the following. On this screen, you can set the camera and sensitivity.

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2021-12-02 154251

When you are done with the settings, click continue. The camera image will then be displayed, and you can use NonMouse with the settings you selected.

4. Hand Movements

stop cursor left click right click scroll
aaa aaa aaa aaa

The following hand movements are enabled only when you hold down Alt(Windows), Command(MacOS). You can define your own global hotkeys by rewriting here. You can use this function even if the window is not active.This feature is only available on windows and mac.

Note

  • Use it with a bright light at hand.
  • Keep your hand as straight as possible to the camera.

5. Quit

Press Ctrl+C, when a terminal window is active.
Press close button(Valid only on windows, linux) or Esc key, when an application window is active.

Build

Note
The built binary files can be downloaded from latest realease.

In app-mac.spec and app-win.spec, change pathex to fit your environment.
Run the following scripts for each OS.