aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/eye_tracking_context/context_modules/file.md
blob: 8a66b83a349de614b2ab78ec1d660447c0392fd3 (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
File
======

ArGaze provides a ready-made contexts to read data from various file format.

To select a desired context, the JSON samples have to be edited and saved inside an [ArContext configuration](../configuration_and_execution.md) file.
Notice that the *pipeline* entry is mandatory.

```json
{
	JSON sample
	"pipeline": ...
}
```

Read more about [ArContext base class in code reference](../../../argaze.md/#argaze.ArFeatures.ArContext).

## CSV

::: argaze.utils.contexts.File.CSV

### JSON sample

```json
{
    "argaze.utils.contexts.File.CSV": {
        "name": "CSV file data playback",
        "path": "./src/argaze/utils/demo/gaze_positions.csv",
        "timestamp_column": "Timestamp (ms)",
        "x_column": "Gaze Position X (px)",
        "y_column": "Gaze Position Y (px)",
        "pipeline": ...
    }
}
```