aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/eye_tracking_context/context_modules/random.md
blob: 89d7501f11cd9a1f281f5c8599f95dd51126afe2 (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
Random
======

ArGaze provides a ready-made context to generate random gaze positions.

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).

## Gaze Position Generator

::: argaze.utils.contexts.Random.GazePositionGenerator

### JSON sample

```json
{
    "argaze.utils.contexts.Random.GazePositionGenerator": {
        "name": "Random gaze position generator",
        "range": [1280, 720],
        "pipeline": ...
    }
}
```