aboutsummaryrefslogtreecommitdiff
path: root/docs/use_cases/pilot_gaze_monitoring/context.md
blob: 417ed1334cc75eec92ef70a639751541cb254102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Live streaming context
======================

The context handles pipeline inputs.

## live_streaming_context.json

For this use case we need to connect to a Tobii Pro Glasses 2 device.
**ArGaze** provides a context class to live stream data from this device.

While *address*, *project*, *participant* and *configuration* entries are specific to the [TobiiProGlasses2.LiveStream](../../argaze.md/#argaze.utils.contexts.TobiiProGlasses2.LiveStream) class, *name*, *pipeline* and *observers* entries are part of the parent [ArContext](../../argaze.md/#argaze.ArFeatures.ArContext) class.

```json
{
	"argaze.utils.contexts.TobiiProGlasses2.LiveStream": {
		"name": "Tobii Pro Glasses 2 live stream",
		"address": "10.34.0.17",
		"project": "HAIKU-XP",
		"participant": "Pilot-A",
		"configuration": {
			"sys_ec_preset": "Indoor",
			"sys_sc_width": 1920,
			"sys_sc_height": 1080,
			"sys_sc_fps": 25,
			"sys_sc_preset": "Auto",
			"sys_et_freq": 50,
			"sys_mems_freq": 100
		},
		"pipeline": "live_processing_pipeline.json",
		"observers": {
			"observers.IvyBus": {
				"name": "argaze_haiku",
				"bus": "10.34.127.255:2023"
			}
		}
	}
}
```

The [live_processing_pipeline.json](pipeline.md) file mentioned aboved is described in the next chapter.

The observers objects are defined into the [observers.py](observers.md) file that is described in a next chapter.