general: implementation of what will be needed - perf tuning needed

This commit is contained in:
Michael Freno
2026-01-15 01:22:18 -05:00
parent f7eb6dfe34
commit 67d52cc333
7 changed files with 1328 additions and 413 deletions

View File

@@ -54,6 +54,16 @@ class EyeTrackingConstants: ObservableObject {
@Published var maxPupilRatio: Double = 0.45
@Published var maxPupilEnabled: Bool = true
// MARK: - Pixel-Based Gaze Detection Thresholds
/// Python GazeTracking thresholds for pixel-based pupil detection
/// Formula: pupilX / (eyeCenterX * 2 - 10)
/// Looking right: ratio 0.35
/// Looking center: 0.35 < ratio < 0.65
/// Looking left: ratio 0.65
@Published var pixelGazeMinRatio: Double = 0.35 // Looking right threshold
@Published var pixelGazeMaxRatio: Double = 0.65 // Looking left threshold
@Published var pixelGazeEnabled: Bool = true
private init() {}
// MARK: - Reset to Defaults