Skip to content

Batch work on the command line

Every step of the interface is also a command, so a whole folder can be labeled in a script. The command-line reference lists every option.

One session

cd /path/to/S01/M0
oml label "S01 Cal 01.c3d" --out "S01 Cal 01.c3d"
for trial in walk*.c3d; do
  oml label "$trial" --out "labeled/$trial" --drop-unlabeled
  oml fill "labeled/$trial" --out "labeled/$trial"
  oml events "labeled/$trial" --out "labeled/$trial"
done

Check the static before labeling the walking trials with it: everything follows from it. oml label prints what it labeled, what it could not find and what to check (--json for a machine-readable report).

Replaying edits

Edits made in the interface are logged next to each trial (<trial>.oml.jsonl). oml apply replays them on the original file, with their gap fills and filter, to write the labeled result again:

oml apply walk01.oml.jsonl --out walk01-labeled.c3d

Inspecting files

oml info walk01.c3d
oml coverage walk01.c3d --set pig_full

oml info summarises a file (frames, markers, unlabeled trajectories, model outputs, analog channels, force plates, events, marker set, height); oml coverage compares its labels with a marker set. oml check-io checks that files survive a read-write-read round trip unchanged.

Measuring on your own data

The eval-* commands remove the labels of labeled trials synthetically, run the automatic step again, and compare the result with the original labels:

Command Measures
oml eval-static Static auto-labeling
oml eval-dynamic Walking-trial auto-labeling, with the session's static
oml eval-fill Every gap-filling method, on stretches hidden from labeled markers
oml eval-events Event detection, against the file's events and the force plates

oml synth writes one such unlabeled copy, with its ground truth, to look at in the interface.