FaceCursor is a hands-free desktop interaction application designed to let people with upper-limb motor disabilities control a computer through head movements and offline voice commands. The system translates real-time facial pose into standard OS mouse events and maps spoken words to keyboard and mouse actions, enabling full desktop use without touching a conventional mouse or keyboard.
Two cursor control modes are available: relative (joystick-style — head tilt drives cursor velocity inside a calibrated movement box with a circular dead zone) and absolute (head pose maps directly to a screen position via a nine-point calibration).
The tracking source is also selectable: the existing MediaPipe face tracker or the optional rigid five-marker ArUco glasses tracker. ArUco camera and cursor calibration are available directly in the application; the final architecture, setup, operation and validation are documented in deliverable_3_IMPLEMENTATION/Aruco_glasses/10_IMPLEMENTAZIONE_FINALE_COMPLETA.md.
- Passuello Giovanni
- Taccione Alessandro
- Tumminello Simone
The repository is organized into three main folders, one for each deliverable required by the course:
.
├── deliverable_1_RASD
├── deliverable_2_DD
└── deliverable_3_IMPLEMENTATION
- Python 3.11+
- Webcam and microphone
- MediaPipe Face Landmarker model and Vosk speech models (see
deliverable_3_IMPLEMENTATION/assets/README.mdfor download instructions — the app will not start without the face model, and starts with voice commands disabled without a Vosk model)
macOS / Linux:
cd deliverable_3_IMPLEMENTATION
python3 -m venv .venv
./.venv/bin/pip install -r requirements.txtWindows (PowerShell):
cd .\deliverable_3_IMPLEMENTATION
py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txtmacOS / Linux:
cd deliverable_3_IMPLEMENTATION
./.venv/bin/python -m src.mainWindows (PowerShell):
cd .\deliverable_3_IMPLEMENTATION
.\.venv\Scripts\python.exe -m src.mainFirst launch: language picker, model availability checks, calibration wizard (relative or absolute, depending on the configured cursor mode), interactive tutorial, then the main window.
| IT | EN | Action |
|---|---|---|
| click / clicca | click | Left click |
| destro | right click | Right click |
| doppio / doppio click | double click | Double click |
| trascina / rilascia | drag | Start/release drag (toggle) |
| interrompi | cancel | Cancel a pending drag |
| scorri su/giù | scroll up/down | Scroll |
| pausa / riprendi | pause / resume | Suspend / resume tracking |
| scrivi <testo> | type <text> | Dictate text into the focused field |
| cancella (ultima) parola | delete (last) word | Delete the last word |
| invio / conferma | enter / confirm | Confirm the focused field |
| annulla | undo | Undo the last reversible action |
| calibra / ricalibra | calibrate / recalibrate | Start recalibration |
| esci | quit | Close the application |
Dictation also works in two steps: saying just the prefix (e.g. "scrivi" / "type") arms dictation, and the next utterance within 10 seconds is typed as text ("interrompi" / "cancel" aborts it).
Every command accepts additional user-defined synonyms, editable per language from Settings → Voice commands.
| Key | Action |
|---|---|
| F9 | Pause / resume tracking |
| F10 | Show / hide the main window |
Both work even when the window is hidden, as an escape hatch for a caregiver.
src/
face_tracking/ webcam capture, T-geometry, calibration mappings
cursor_control/ pose -> cursor command core, OS input port, driver
voice_commands/ Vosk recognizer, grammar, parser, action dispatcher
calibration/ full-screen calibration wizards (relative / absolute)
tutorial/ guided exercises (movement, clicks, scroll, menu, text)
ui/ PyQt6 windows, settings, tray, hotkeys
i18n/ IT/EN locale JSON + live-retranslating manager
config/ pydantic-validated settings JSON
utils/ logging, smoothing filters, Qt runtime setup
tools/ importable demos, diagnostics and standalone entrypoints
main.py
tests/
build.py
./.venv/bin/pytest
./.venv/bin/python -m src.tools.check_i18n --unused./.venv/bin/python build.py
./.venv/bin/python build.py --with-vosk