general: attempts at better window management

This commit is contained in:
Michael Freno
2026-01-17 00:39:38 -05:00
parent f46ccdc4ca
commit 03ab6160d2
7 changed files with 118 additions and 64 deletions

View File

@@ -76,6 +76,11 @@ enum EyeTrackingConstants: Sendable {
/// > 1.0 = More aggressive scaling
static let distanceSensitivity: Double = 1.0
/// Default reference face width for distance scaling when uncalibrated.
/// Measured from test videos at typical laptop distance (~60cm).
/// Face bounding box width as ratio of image width.
static let defaultReferenceFaceWidth: Double = 0.4566
/// Minimum confidence required for a valid pupil detection before updating the gaze average.
/// Helps filter out blinks or noisy frames.
static let minimumGazeConfidence: Int = 3 // consecutive valid frames