You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`python gui.py` to start gui (Linux: `sudo ./venv/bin/python3.10 gui.py`)
17
-
-`Alt+1` to toggle mouse controlled by python or system.
18
-
-`Esc` to turn off program. (Used if you lose control over mouse)
19
15
20
-
Alternatively you can create an executable distribution and run `dist\gui.exe` (Windows) or `dist/gui` (Linux)
16
+
### Release
17
+
18
+
1. Extract zip file
19
+
2. Run `gesture_mouse.exe` (Windows) or `sudo ./gesture_mouse` (Linux)
20
+
21
+
### Development
22
+
23
+
-`python gui.py` to start gui (Linux: `sudo ./venv/bin/python3.10 gui.py`)
24
+
25
+
## Hotkeys
26
+
27
+
- <kbd>Alt</kbd>+<kbd>1</kbd> to toggle mouse movement and gestures.
28
+
- <kbd>Alt</kbd>+<kbd>m</kbd> to toggle mouse movement.
29
+
- <kbd>Alt</kbd>+<kbd>g</kbd> to toggle gestures.
30
+
- <kbd>Alt</kbd>+<kbd>t</kbd> to toggle tracking (start or stop camera).
31
+
32
+
### Hotkeys Mouse Movement
33
+
34
+
- <kbd>m</kbd> iterate through mouse (ABSOLUTE, RELATIVE, JOYSTICK, HYBRID) modes
35
+
- <kbd>t</kbd> iterate through tracking mode (PNP, MEDIAPIPE, NOSE)
36
+
- <kbd>c</kbd> Center mouse position
37
+
- <kbd>.</kbd> Switch monitor in case there are several monitors applied. Ignored for RELATIVE mouse mode.
21
38
22
39
## Creating an exe distribution
23
-
To create a distribution folder wich includes all necessery .dll and an executable one can use PyInstaller([https://pyinstaller.org](https://pyinstaller.org)).
40
+
To create a distribution folder which includes all necessery .dll and an executable one can use PyInstaller([https://pyinstaller.org](https://pyinstaller.org)).
24
41
Instructions:
25
42
1. Follow the installation instructions
26
-
2. Activate virtual environment`venv/Scripts/activate` on windows and `source venv/bin/activate` on linux
43
+
2. Activate virtual environment
27
44
3. Install PyInstaller `pip install pyinstaller`
28
45
4. Execute build process with
29
-
`pyinstaller gui.py -D --add-data config;config --add-data data;data --collect-all mediapipe` on windows
30
-
`pyinstaller gui.py -D --add-data config:config --add-data data:data --collect-all mediapipe` on linux
46
+
`pyinstaller gui.py -D --add-data config;config --add-data data;data --collect-all mediapipe -n gesture-mouse --contents-directory .` on linux
47
+
`pyinstaller gui.py -D --add-data config:config --add-data data:data --collect-all mediapipe -n gesture-mouse --contents-directory .` on windows
0 commit comments