Skip to content

Commit eb5c1df

Browse files
committed
added how to build exe
1 parent 044fab6 commit eb5c1df

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,16 @@ If the head pose values don't represent the real tilting of the head, you can ca
4444
### Enabling/Disabling Mouse
4545

4646
By default the configured actions are disabled.
47-
Press 'a' to enable/disable the execution of mouse and keyboard emulation.
47+
Press 'a' to enable/disable the execution of mouse and keyboard emulation.
48+
49+
## Build executable
50+
51+
To create a distribution folder which includes all necessary .dll and an executable one can use nuitka(https://nuitka.net/). This translates the code to C code and compiles it. Instructions:
52+
53+
1. Activate virtual environment ```venv/Scripts/activate``` on windows and source ```venv/bin/activate``` on linux
54+
2. Install nuitka: ```pip install nuitka```
55+
3.
56+
```
57+
python -m nuitka --standalone --nofollow-import-to=tkinter --include-package-data=mediapipe --include-data-dir=.\venv-win\Lib\site-packages\themes=th
58+
emes .\camera-mouse.py
59+
```

0 commit comments

Comments
 (0)