Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/FocusCore/FocusScorer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public struct ScorerParams: Equatable, Sendable {
}
}

/// Calibration knobs, ported from the ideas in e-candeloro/Driver-State-Detection (MIT).
/// Calibration knobs.
/// ponytail: fixed constants tuned for a laptop webcam; expose in settings if users report false alerts.
public enum Knobs {
public static let calibrationSeconds = 10.0
Expand Down
2 changes: 1 addition & 1 deletion docs/focus-scoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Each camera frame (about 10 per second) goes through Apple's Vision framework: `

## Why not an end-to-end "focus %" model

End-to-end engagement models trained on DAiSEE reach about 60–73 % accuracy even in papers and generalize poorly. The established approach is pretrained face and landmark models plus transparent scoring, which is what [Driver-State-Detection](https://github.com/e-candeloro/Driver-State-Detection) (MIT) does and what FocusGuard follows.
End-to-end engagement models trained on DAiSEE reach about 60–73 % accuracy even in papers and generalize poorly. The established approach is pretrained face and landmark models plus transparent scoring. FocusGuard follows that approach.

## Calibration
The first 10 s of each study phase record the user's baseline: neutral `yaw`/`pitch` (camera may sit low or to the side) and baseline EAR. All later checks use deltas from the baseline.
Expand Down
Loading