Skip to content
mathewgeejoPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

EyeOS

EyeOS is a safety-first, offline Windows 11 desktop eye-control prototype written in Rust.

It is deliberately scoped to the normal signed-in desktop. It does not bypass Windows UAC, the lock screen, or the secure desktop. Raw camera frames, calibration samples, and text predictions remain on the device.

Launch behaviour

Running eyeos.exe opens the fullscreen tracking workspace. Setup, calibration targets, accepted-sample progress, live status, gaze preview, and a clickable control blob share this screen. Monitor EDID supplies physical display size when available; viewing distance is entered by the user. After calibration, the optional floating desktop mode opens a small transparent control blob in the bottom-left corner. The workspace has explicit Mouse movement, Keyboard input, Use on desktop, and Pause input buttons. The keyboard preview is available before calibration; typing there stays in EyeOS. It includes numbers, letters, space, delete, enter, and phrase shortcuts, with visible gaze dwell progress on each key.

After precision validation, enable live mouse and keyboard input. Select mouse movement or the keyboard, then choose Use on desktop to access other apps. For desktop typing, click the destination text field once; the floating keyboard does not take focus when you click or dwell on its keys. Mouse movement includes dwell clicking. Escape in the workspace pauses input.

With a validated saved profile and live input enabled, tracking can resume on launch. An 800 ms dwell on the blob opens the compact 3×3 action pad; choosing an action returns to the blob. The gaze keyboard is also a compact bottom overlay and supports direct dwell selection, without requiring a mouse click.

Caregiver-only surfaces remain available through --setup and --training. The latter always uses dry-run input. Live desktop input is enabled only after a reviewed local model and saved calibration are present; if either is absent, EyeOS stays paused instead of guessing.

EyeOS embeds a pinned MediaPipe Face Landmarker task bundle, the matching Windows MediaPipe C runtime, the OpenVINO CPU runtime, and local Open Model Zoo head-pose and gaze-vector networks. MediaPipe is used only to locate and rotate face/eye crops from the current RGB frame. OpenVINO runs corrected head-pose and binocular gaze-vector inference on the CPU. The reusable engine uses robust standardized calibration and retrieves labeled fixation residuals only when grouped cross-validation improves accuracy. The same filtered output drives overlays and desktop control. Runtime and model hashes are checked before use, then the native DLLs/models are extracted only to EyeOS's per-user managed runtime folder. Provenance is recorded in assets/models/NOTICE.md and assets/models/openvino/NOTICE.md.

Build

cargo test
cargo run --release -- --training
cargo build --release

eyeos.exe is at target\release\eyeos.exe. The first build needs Rust stable, Visual Studio Build Tools with the C++ desktop workload, and the Windows 11 SDK. Use the release build for webcam tracking. Debug builds can reduce processing throughput. A frame rate below 25 FPS is advisory and may lengthen calibration; freshness, image quality, and independent precision validation determine usability.

Commands

eyeos.exe                  Open the combined tracking workspace.
eyeos.exe --training       Open the safe training environment.
eyeos.exe --setup          Open caregiver calibration/setup.
eyeos.exe --install-autostart
eyeos.exe --reset-profile

First-time setup: run eyeos.exe --setup, enter actual screen dimensions and eye-to-screen distance, then choose Start full calibration. Nine targets and three head-position fixations are followed by thirteen separate validation targets. EyeOS reports raw median/p95 pixel error, estimated angular error, coverage, jitter and latency. Fine desktop input requires independent precision validation (median <=1 degree, p95 <=2 degrees); targeted extra calibration is available if it fails. These are measured goals, not a universal webcam accuracy guarantee. Old calibration profiles require a fresh setup because preprocessing and features changed. The tracker uses CPU inference on-device; it sends no webcam frames to EyeOS servers or a cloud service.

For developer verification only, eyeos.exe --simulate-gaze maps the physical mouse position through the gaze state machine in dry-run mode. It never sends input to another application.

Safety

  • Control starts paused and dry-run enabled.
  • Lost tracking releases any held button and pauses control.
  • Live Windows input never runs on the Windows secure desktop and is limited by normal Windows integrity rules.
  • A real user evaluation is required before independent use.

Reusable tracking SDK

The standalone portable Rust core has no camera, UI, network or OS-input dependencies. The Windows adapter, C ABI, Python and Node/Electron wrappers are documented in the SDK guide. It supports owned webcam capture or caller-supplied RGB frames. Complete calibration/preview examples are included for Python/Tk and Electron.

The SDK never injects desktop input. Models and native runtimes are bundled and verified locally. A bounded latest-frame queue prevents camera backlog; tracking loss resets filtering and dwell. SDK JSON profiles use host-managed storage; EyeOS encrypts profiles with Windows DPAPI.

Run regression tests with cargo test --workspace --all-targets. A packaging script copies an existing native DLL without running a build. Real accuracy requires independent user sessions; synthetic tests do not establish performance with glasses, lighting changes or head movement.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages