
Listing 1
Minimal Working Example demonstrating how the code can be used to interface with the EyeX hardware (see body text for details).
Table 1
Data fields returned for each sample. Note that gaze and eyeball location are estimated separately, and the timestamps for each may differ slightly. For most applications, however, they can be treated as identical.
| id | Field name | Description |
|---|---|---|
| 1 | X (px) | Horizontal gaze location on the screen |
| 2 | Y (px) | Vertical gaze location on the screen |
| 3 | EyeGazeTimestamp (µs) | Timestamp for gaze estimate |
| 4 | HasLeftEyePosition (0 or 1) | Whether left eye was detected |
| 5 | HasRightEyePosition (0 or 1) | Whether right eye was detected |
| 6 | LeftEyeX (mm) | Left eyeball location in physical space |
| 7 | LeftEyeY (mm) | " |
| 8 | LeftEyeZ (mm) | " |
| 9 | RightEyeX (mm) | Right eyeball location in physical space |
| 10 | RightEyeY (mm) | " |
| 11 | RightEyeZ (mm) | " |
| 12 | EyePosTimestamp (µs) | Timestamp for location estimates |
