aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/utils/ready-made_scripts.md
blob: 2c657e0495ee2a9a5b1a1c67b924abb6edadc6dc (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
Ready-made scripts
==================

Collection of command-line scripts to provide useful features.

!!! note
      *Consider that all inline commands below have to be executed at the root of ArGaze package folder.*

!!! note
      *Use -h option to get command arguments documentation.*

## ArContext handler

Load and execute any ArContext from a JSON CONFIGURATION file

```shell
python -m argaze CONFIGURATION
```

### Send command

Use -p option to enable pipe communication at given address:

```shell
python -m argaze post_processing_context.json -p /tmp/argaze
```

Open another tab in the **same** Terminal window then, you can send any Python command into the pipe.

For example:

* Print context:
```shell
echo "print(context)" > /tmp/argaze
```

* Pause context processing:

```shell
echo "context.pause()" > /tmp/argaze
```

* Resume context processing:

```shell
echo "context.resume()" > /tmp/argaze
```

## ArUco markers group exporter

Detect DICTIONARY and SIZE ArUco markers inside a MOVIE frame then, export detected ArUco markers group as .obj file into an OUTPUT folder.

```shell
python ./src/argaze/utils/aruco_marker_group_export.py MOVIE DICTIONARY SIZE -o OUTPUT
```