You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/under-the-hood.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,14 @@ Gaze data is encoded in network byte order (big-endian) and consists of:
204
204
3.`worn` - Boolean indicating whether the user is wearing the device. The value is
205
205
encoded as an unsigned 8-bit integer as either `255` (device is being worn) or `0` (device is _not_ being worn).
206
206
207
+
**Dual Monocular Gaze Data in Neon**
208
+
Starting from Neon Companion app version +2.9.31, both binocular and monocular gaze data are estimated simultaneously in Neon. In this case, the following additional parameters are included:
209
+
210
+
4.`mono_left_x` - Horizontal component of the left eye's monocular gaze location in pixels within the scene camera’s coordinate system. The value is encoded as a 32-bit float.
211
+
5.`mono_left_y` - Vertical component of the left eye's monocular gaze location in pixels within the scene camera’s coordinate system. The value is encoded as a 32-bit float.
212
+
6.`mono_right_x` - Horizontal component of the right eye's monocular gaze location in pixels within the scene camera’s coordinate system. The value is encoded as a 32-bit float.
213
+
7.`mono_right_y` - Vertical component of the right eye's monocular gaze location in pixels within the scene camera’s coordinate system. The value is encoded as a 32-bit float.
214
+
207
215
**Eye State Data (Optional)**
208
216
209
217
If eye state computation is enabled (not available for Pupil Invisible), additional parameters are included(all encoded as a 32-bit float):
@@ -226,6 +234,9 @@ If eye state computation is enabled (not available for Pupil Invisible), additio
226
234
227
235
Each RTP packet contains one gaze datum. The payload length varies:
228
236
237
+
??? quote "Have a look at RTSPGazeStreamer.receive for payload unpacking details"
Copy file name to clipboardExpand all lines: docs/methods/async/streaming/gaze.md
+69Lines changed: 69 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ This function can return different types of gaze data ([GazeDataType][pupil_labs
6
6
7
7
-[GazeData][pupil_labs.realtime_api.streaming.gaze.GazeData] object for Pupil Invisible or Neon without "Compute eye state" enabled.
8
8
-[EyestateGazeData][pupil_labs.realtime_api.streaming.gaze.EyestateGazeData] or [EyestateEyelidGazeData][pupil_labs.realtime_api.streaming.gaze.EyestateEyelidGazeData] for Neon with "Compute eye state" enabled, depending on the version of the Neon Companion app.
9
+
- Starting from Neon Companion app version +2.9.31, both binocular and monocular gaze data are exposed, it can return [BinoAndDualMonoGazeData][pupil_labs.realtime_api.streaming.gaze.BinoAndDualMonoGazeData] or [EyestateEyelidDualMonoGazeData][pupil_labs.realtime_api.streaming.gaze.EyestateEyelidDualMonoGazeData].
9
10
10
11
See below samples for each type of gaze data.
11
12
@@ -20,6 +21,30 @@ See below samples for each type of gaze data.
20
21
)
21
22
```
22
23
24
+
=== "Gaze data (Dual Mono)"
25
+
26
+
<!-- badge:product Neon -->
27
+
<!-- badge:companion +2.9.31 -->
28
+
<!-- badge:version +1.8.0 -->
29
+
30
+
```py linenums="0"
31
+
BinoAndDualMonoGazeData(
32
+
x=848.9487915039062,
33
+
y=474.46356201171875,
34
+
worn=True,
35
+
mono_left_x=895.11083984375,
36
+
mono_left_y=477.2065734863281,
37
+
mono_right_x=800.8253173828125,
38
+
mono_right_y=469.348388671875,
39
+
timestamp_unix_seconds=1772109976.1031907
40
+
)
41
+
```
42
+
43
+
This method exposes gaze data for Neon in Dual Mono mode, which includes binocular and monocular gaze data.
@@ -86,6 +111,50 @@ See below samples for each type of gaze data.
86
111
```
87
112
This method also provides [eye openness](https://docs.pupil-labs.com/neon/data-collection/data-streams/#eye-openness) data.
88
113
114
+
=== "Dual Mono and Eye State & Eye Lid"
115
+
116
+
<!-- badge:product Neon -->
117
+
<!-- badge:companion +2.9.31 -->
118
+
<!-- badge:version +1.8.0 -->
119
+
120
+
```py linenums="0"
121
+
EyestateEyelidDualMonoGazeData(
122
+
x=852.3287353515625,
123
+
y=517.3056030273438,
124
+
worn=False,
125
+
pupil_diameter_left=4.567640781402588,
126
+
eyeball_center_left_x=-32.25,
127
+
eyeball_center_left_y=18.6875,
128
+
eyeball_center_left_z=-44.9375,
129
+
optical_axis_left_x=0.20407231152057648,
130
+
optical_axis_left_y=-0.020999005064368248,
131
+
optical_axis_left_z=0.9787306189537048,
132
+
pupil_diameter_right=3.035294771194458,
133
+
eyeball_center_right_x=30.15625,
134
+
eyeball_center_right_y=14.375,
135
+
eyeball_center_right_z=-43.3125,
136
+
optical_axis_right_x=-0.08533422648906708,
137
+
optical_axis_right_y=-0.019046271219849586,
138
+
optical_axis_right_z=0.9961703419685364,
139
+
eyelid_angle_top_left=-0.63037109375,
140
+
eyelid_angle_bottom_left=-1.138671875,
141
+
eyelid_aperture_left=6.09653902053833,
142
+
eyelid_angle_top_right=-0.06329345703125,
143
+
eyelid_angle_bottom_right=0.1409912109375,
144
+
eyelid_aperture_right=2.228158473968506,
145
+
gaze_mono_left_x=864.9857177734375,
146
+
gaze_mono_left_y=526.5974731445312,
147
+
gaze_mono_right_x=834.6492309570312,
148
+
gaze_mono_right_y=481.4454040527344,
149
+
timestamp_unix_seconds=1772108289.6118817
150
+
)
151
+
```
152
+
This method exposes binocular and monocular gaze data, [pupil diameter](https://docs.pupil-labs.com/neon/data-collection/data-streams/#pupil-diameters), and [eye poses](https://docs.pupil-labs.com/neon/data-collection/data-streams/#_3d-eye-poses).
Copy file name to clipboardExpand all lines: docs/methods/simple/streaming/gaze.md
+69Lines changed: 69 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ This function can return different types of gaze data ([GazeDataType][pupil_labs
10
10
11
11
-[GazeData][pupil_labs.realtime_api.streaming.gaze.GazeData] object for Pupil Invisible or Neon without "Compute eye state" enabled.
12
12
-[EyestateGazeData][pupil_labs.realtime_api.streaming.gaze.EyestateGazeData] or [EyestateEyelidGazeData][pupil_labs.realtime_api.streaming.gaze.EyestateEyelidGazeData] for Neon with "Compute eye state" enabled, depending on the version of the Neon Companion app.
13
+
- Starting from Neon Companion app version +2.9.31, both binocular and monocular gaze data are exposed, it can return [BinoAndDualMonoGazeData][pupil_labs.realtime_api.streaming.gaze.BinoAndDualMonoGazeData] or [EyestateEyelidDualMonoGazeData][pupil_labs.realtime_api.streaming.gaze.EyestateEyelidDualMonoGazeData].
13
14
14
15
See below samples for each type of gaze data.
15
16
@@ -29,6 +30,30 @@ See below samples for each type of gaze data.
This method exposes binocular and monocular gaze data, [pupil diameter](https://docs.pupil-labs.com/neon/data-collection/data-streams/#pupil-diameters), and [eye poses](https://docs.pupil-labs.com/neon/data-collection/data-streams/#_3d-eye-poses).
0 commit comments