How anirban4ru/gaze works
GAZE is a Windows desktop privacy application: the user configures monitoring and calibration, an isolated local vision worker analyzes camera frames, and the agent evaluates observations to activate a fail-safe screen cover. The app and worker exchange commands and numeric observations over named-pipe IPC; the overlay provides synchronous cover and GPU frosted-glass layers. Settings, calibration, and platform process isolation are supporting concerns. Edges follow shown references or README architecture; some unsampled runtime links are omitted rather than inferred.
Main entry points: VisionPipeline.cs Vision pipeline · EngineHost.cs Engine host · AppController.cs App controller · VisionWorkerHost.cs Vision worker
Components 22
Desktop app
- WPF shell
src/Gaze.App/MainWindow.xaml.cs - App controller
src/Gaze.App/Services/AppController.cs - Settings UI
src/Gaze.App/Views/Pages/SettingsPage.xaml.cs - Onboarding calibration
src/Gaze.App/Views/OnboardingWizardWindow.xaml.cs
Protection engine
- Settings and calibration store
src/Gaze.Core/Config/SettingsStore.cs - Settings and profiles
src/Gaze.Core/Config/GazeSettings.cs - Engine host
src/Gaze.Agent/EngineHost.cs - Vision supervisor
src/Gaze.Agent/VisionSupervisor.cs - Privacy state machine
src/Gaze.Core/Privacy/PrivacyStateMachine.cs - Named-pipe IPC
src/Gaze.Ipc/Transport/GazePipeServer.cs - Numeric observations
src/Gaze.Core/Observations/Observation.cs
On-device vision
- Vision worker
src/Gaze.VisionHost/VisionWorkerHost.cs - Camera capture
src/Gaze.Vision/Camera/MediaFrameCameraSource.cs - Vision pipeline
src/Gaze.Vision/Pipeline/VisionPipeline.cs - Face detection
src/Gaze.Vision/Inference/YuNetFaceDetector.cs - Face landmarks
src/Gaze.Vision/Inference/MediaPipeFaceLandmarker.cs - Head-pose estimation
src/Gaze.Vision/Geometry/SvdHeadPoseEstimator.cs
Privacy presentation
- Dual-layer overlay
src/Gaze.Overlay/OverlayManager.cs - GPU blur pipeline
src/Gaze.Overlay/BlurPipeline.cs
Windows platform
- Tray and agent shell
src/Gaze.Platform/Shell/TrayIconService.cs - Worker process isolation
src/Gaze.Platform/Processes/JobObjectSupervisor.cs
Other components
- User
Connections 21
- User → WPF shell: uses
- WPF shell → App controller: delegates to
- App controller → Settings and calibration store: loads settings
src/Gaze.App/Services/AppController.cs - Settings UI → App controller: updates settings
- Onboarding calibration → App controller: requests calibration
- Settings and calibration store → Settings and profiles: persists
src/Gaze.Core/Config/SettingsStore.cs - App controller → Named-pipe IPC: sends commands
src/Gaze.App/Services/AppController.cs - Engine host → Privacy state machine: evaluates events
src/Gaze.Agent/EngineHost.cs - Engine host → Dual-layer overlay: applies effects
src/Gaze.Agent/EngineHost.cs - Engine host → Vision supervisor: manages worker
src/Gaze.Agent/EngineHost.cs - Engine host → Named-pipe IPC: hosts pipe
src/Gaze.Agent/EngineHost.cs - Vision supervisor → Worker process isolation: isolates process
src/Gaze.Agent/VisionSupervisor.cs - Vision worker → Named-pipe IPC: sends observations
src/Gaze.VisionHost/VisionWorkerHost.cs - Vision worker → Vision pipeline: processes frames
src/Gaze.VisionHost/VisionWorkerHost.cs - Vision worker → Camera capture: controls capture
- Vision pipeline → Face detection: detects faces
src/Gaze.Vision/Pipeline/VisionPipeline.cs - Vision pipeline → Face landmarks: estimates landmarks
src/Gaze.Vision/Pipeline/VisionPipeline.cs - Vision pipeline → Head-pose estimation: estimates pose
src/Gaze.Vision/Pipeline/VisionPipeline.cs - Vision pipeline → Numeric observations: produces
src/Gaze.Vision/Pipeline/VisionPipeline.cs - Dual-layer overlay → GPU blur pipeline: renders frost
src/Gaze.Overlay/OverlayManager.cs - Tray and agent shell → Engine host: controls protection
src/Gaze.Agent/EngineHost.cs