blob: 7d73a037fed6e6c1c51fcf307eaa4a02aab86dbf (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
OpenCV
======
ArGaze provides a ready-made contexts to process cursor position over Open CV window and process movie images.
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).
## Cursor
::: argaze.utils.contexts.OpenCV.Cursor
### JSON sample
```json
{
"argaze.utils.contexts.OpenCV.Cursor": {
"name": "Open CV cursor",
"pipeline": ...
}
}
```
## Movie
::: argaze.utils.contexts.OpenCV.Movie
### JSON sample
```json
{
"argaze.utils.contexts.OpenCV.Movie": {
"name": "Open CV movie",
"path": "./src/argaze/utils/demo/tobii_record/segments/1/fullstream.mp4",
"pipeline": ...
}
}
```
## Camera
::: argaze.utils.contexts.OpenCV.Camera
### JSON sample
```json
{
"argaze.utils.contexts.OpenCV.Camera": {
"name": "Open CV camera",
"identifier": 0,
"pipeline": ...
}
}
```
|