Repository navigation
feat: learned work zones for several screens; gaze relative to calibration - #11
Merged
Merged
Conversation
…o calibration With two screens the calibration only knew the one you looked at first: turning to a laptop with the camera read as looking away (0 %), and the pupil check used an absolute threshold, so a camera beside the screen cost focus even when looking straight ahead (about 60 %). - PoseZones records head poses in 10° bins over the last 10 minutes; a pose held for 60 s in total becomes a work zone and counts as focused. Poses more than 30° above or below calibration (a phone in the lap) are never learned. Zones live for the app run, across study phases. - The pupil offset is compared with its calibrated value instead of a fixed 0.35. - Tests: second screen learned, zones carry over, relative gaze; 'away' in the old tests is now the phone pose.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With two screens, focus read 0 % while looking at the laptop that holds the camera, and only about 60 % at the main monitor.
awaypose in the old tests is now the phone pose, because a long look to the side is now legitimately learned.swift run focus-check: all 32 checks pass. Not yet checked with a real camera and two screens.