- Face center translation applies movement commands to the cursor
- Left blink - Left click
- Right blink - Right click
- 'm' - Toggle cursor
- 't' - Toggle left click
- 'c' - Calibrate cursor and EAR thresholds
- 'q' - Quit
- False positive blinks - Close both eyes and press 'c' to recalibrate blink detection
- Bad mouse speed - Play with the variables in settings.py
- Camera problems - If you have multiple devices, change CAMERA_INDEX in settings.py
- CMake problems - Go to chatgpt.com
- Python 3.11 - https://www.python.org/downloads/release/python-3119/
- CMake 3.10 or newer - https://cmake.org/download/
- WebCam
- Windows 10/11 - https://en.wikipedia.org/wiki/Bill_Gates
-
Create python environment
py 3.11 -m venv BlinkerEnv BlinkerEnv\Scripts\activate pip install -r requirements.txt
-
Build C++ server
- Install Visual Studio Community Edition
- Under Workloads check 'Desktop development with C++'
- Under Individual components check 'MSVC V143', 'Windows 10/11 SDK', and 'C++ CMake tools'
mkdir build cmake -S . -B build cmake --build build --config Release -
Run Blinker
python blinker.py
Trig based cursor inspired by Jason Orlosky: https://www.youtube.com/watch?v=hImmJDTgXjw