Command-line reference¶
Everything the browser UI does to a trial can also be done from a terminal, for one file or a whole folder in a script. oml <command> --help shows the same help.
| Command | What it does |
|---|---|
oml info |
Summarize a C3D file. |
oml check-io |
Check that files survive a read-write-read round trip without any change. |
oml synth |
Make an unlabeled copy of a labeled trial, with ground truth (<output>.gt.npz). |
oml markersets |
List the built-in marker sets, or show one. |
oml coverage |
Compare a file's marker labels with a marker set. |
oml apply |
Replay an edit log on its source C3D and write the labeled result (with its gap fills and filter). |
oml label |
Auto-label a trial (static or moving) and write the labeled C3D. |
oml learn |
Learn a static template from labeled static trials. |
oml eval-static |
Benchmark the static auto-labeler on labeled statics, unlabeled synthetically. |
oml eval-dynamic |
Benchmark the dynamic auto-labeler on labeled moving trials, unlabeled synthetically. |
oml fill |
Fill the gaps of a labeled trial (and filter it) and write the result. |
oml eval-fill |
Benchmark gap filling: hide stretches of labeled markers (5-50 frames) and compare every method's fill with them. |
oml events |
Detect foot strikes and foot offs and write them into the trial's EVENT group. |
oml eval-events |
Benchmark event detection: detect the events of labeled trials (ignoring the ones in the file) and compare them with the file's events and with the force plates. |
oml example |
Write a small made-up session to try OpenMotionLabel on: a subject's unlabeled static and two unlabeled walking trials (synthetic, no recording involved). |
oml serve |
Start the browser UI on this computer (http://127.0.0.1, and a tunnel's host names). |
oml pycgm2 |
The optional pyCGM2 bridge. |
oml config |
Your OpenMotionLabel settings. |
oml info¶
Summarize a C3D file.
| Argument or option | What it does | Default |
|---|---|---|
PATH |
C3D file. | required |
--json |
Print JSON. | off |
oml check-io¶
Check that files survive a read-write-read round trip without any change.
| Argument or option | What it does | Default |
|---|---|---|
PATHS |
C3D files. | required |
oml synth¶
Make an unlabeled copy of a labeled trial, with ground truth (<output>.gt.npz).
| Argument or option | What it does | Default |
|---|---|---|
SOURCE |
Labeled C3D file. | required |
OUTPUT |
Unlabeled C3D file to write. | required |
--level |
0: gaps only, 1: + mis-links and ghosts, 2: + swaps. | 1 |
--seed |
Random seed. | 0 |
--set, -s |
Only these markers count (built-in name or YAML). |
oml markersets¶
List the built-in marker sets, or show one.
| Argument or option | What it does | Default |
|---|---|---|
NAME |
Show one marker set (built-in name or YAML). |
oml coverage¶
Compare a file's marker labels with a marker set.
| Argument or option | What it does | Default |
|---|---|---|
PATH |
C3D file. | required |
--set, -s |
Built-in name or YAML file. | required |
--static |
Treat the file as a static trial. | off |
oml apply¶
Replay an edit log on its source C3D and write the labeled result (with its gap fills and filter).
| Argument or option | What it does | Default |
|---|---|---|
LOG |
Edit log ( |
required |
--out, -o |
Labeled C3D file to write. | required |
--source |
Source C3D (default: the file named in the log). | |
--drop-unlabeled |
Leave out unlabeled trajectories. | off |
--prefixes |
Subject prefixes: auto, none or subject. | auto |
--filter / --no-filter |
Filter the markers as the log's filter edits say. | on |
oml label¶
Auto-label a trial (static or moving) and write the labeled C3D.
A moving trial is labeled with the subject's labeled static of the same session; label the static first (oml label on it, then check it).
| Argument or option | What it does | Default |
|---|---|---|
PATH |
C3D trial to label. | required |
--out, -o |
Labeled C3D to write. | required |
--markerset |
Marker set (default: guessed from the file's labels and declared set). | |
--static |
Moving trials: the subject's labeled static (default: looked for next to the trial). | |
--search / --no-search |
Look for the subject's static next to the trial. | on |
--relabel |
Replace labels read from the file instead of keeping them. | off |
--template |
Static template JSON (default: a learned one, else defaults). | |
--drop-unlabeled |
Leave out trajectories that stay unlabeled. | off |
--prefixes |
Subject prefixes: auto, none or subject. | auto |
--json |
Print the report as JSON. | off |
--cgm |
Then check the labels with this CGM (CGM1.0, CGM1.1, CGM2.1 to CGM2.5) through pyCGM2, when it is installed; the labeling never depends on it. |
oml learn¶
Learn a static template from labeled static trials.
The template holds only averages and spreads; it is written outside the repository (to ~/.openmotionlabel/templates, or $OML_TEMPLATE_DIR) unless --out says otherwise.
| Argument or option | What it does | Default |
|---|---|---|
CORPUS |
Folder of labeled trials. | required |
--markerset |
Marker set the statics are labeled with. | pig_full |
--out, -o |
Template file (default: the user template folder). | |
--any-name |
Consider every C3D, not only files whose path names a calibration or static trial. | off |
--min-markers |
Least labeled markers a static must have. | 20 |
oml eval-static¶
Benchmark the static auto-labeler on labeled statics, unlabeled synthetically.
| Argument or option | What it does | Default |
|---|---|---|
CORPUS |
Folder of labeled trials. | required |
--markerset |
Marker set the statics are labeled with. | pig_full |
--template |
default, learned (cross-validated) or both. | both |
--level |
Synthetic unlabeling level(s): 0, 1 or 2. | [1, 2] |
--folds |
Cross-validation folds (by subject) for learned templates. | 2 |
--pins |
Corrections to simulate when a trial is not fully correct. | 2 |
--limit |
Use at most this many statics (evenly spread). | |
--csv |
Write one row per run. |
oml eval-dynamic¶
Benchmark the dynamic auto-labeler on labeled moving trials, unlabeled synthetically.
Trials whose labels disagree with their own static are skipped (counted, not scored).
| Argument or option | What it does | Default |
|---|---|---|
CORPUS |
Folder of labeled trials and their statics. | required |
--markerset |
Marker set the trials are labeled with. | pig_full |
--level |
Synthetic unlabeling level(s): 0, 1 or 2. | [1, 2] |
--static / --no-static |
Label with the subject's static (as in the app). | on |
--limit |
Use at most this many trials (evenly spread). | |
--jobs |
Trials labeled in parallel. | 1 |
--csv |
Write one row per run. |
oml fill¶
Fill the gaps of a labeled trial (and filter it) and write the result.
Every gap is filled the way expected to be most accurate: each method is tried on stretches of the trial where the marker was seen. Gaps whose fill is expected to be off by more than --max-error stay open.
| Argument or option | What it does | Default |
|---|---|---|
PATH |
Labeled C3D trial. | required |
--out, -o |
C3D file to write. | required |
--markerset |
Marker set (default: guessed from the file's labels and declared set). | |
--method |
auto (the method expected to be most accurate per gap), spline, woltring, pattern, rigid or regression. | auto |
--max-gap |
Longest gap to fill (frames). | 50 |
--max-error |
Leave a gap open when its fill is expected to be off by more (mm). | 5.0 |
--edges |
Also extrapolate gaps at the start and end of the trial. | off |
--filter |
Filter the markers: none, butterworth or spline (GCV). | none |
--cutoff |
Butterworth cutoff (Hz). | 6.0 |
--order |
Butterworth order (zero lag doubles it). | 2 |
--drop-unlabeled |
Leave out unlabeled trajectories. | off |
--prefixes |
Subject prefixes: auto, none or subject. | auto |
--json |
Print the report as JSON. | off |
oml eval-fill¶
Benchmark gap filling: hide stretches of labeled markers (5-50 frames) and compare every method's fill with them.
| Argument or option | What it does | Default |
|---|---|---|
CORPUS |
Folder of labeled trials. | required |
--markerset |
Marker set the trials are labeled with. | pig_full |
--per-trial |
Stretches hidden per trial. | 20 |
--limit |
Use at most this many trials (evenly spread). | |
--jobs |
Trials run in parallel. | 1 |
--csv |
Write one row per hidden stretch. |
oml events¶
Detect foot strikes and foot offs and write them into the trial's EVENT group.
Clean force-plate contacts give their events; the other steps get events from the heel, toe and pelvis markers. Foot strikes and foot offs already in the file are replaced; other events stay.
| Argument or option | What it does | Default |
|---|---|---|
PATH |
Labeled C3D trial. | required |
--out, -o |
C3D file to write. | required |
--markerset |
Marker set (default: guessed from the file's labels and declared set). | |
--threshold |
Force (N) above which a foot is on a plate. | 20.0 |
--min-contact |
Shortest plate contact (s). | 0.1 |
--json |
Print the report as JSON. | off |
oml eval-events¶
Benchmark event detection: detect the events of labeled trials (ignoring the ones in the file) and compare them with the file's events and with the force plates.
| Argument or option | What it does | Default |
|---|---|---|
CORPUS |
Folder of labeled trials with events. | required |
--threshold |
Force (N) above which a foot is on a plate. | 20.0 |
--limit |
Use at most this many trials (evenly spread). | |
--jobs |
Trials run in parallel. | 1 |
--csv |
Write one row per trial. |
oml example¶
Write a small made-up session to try OpenMotionLabel on: a subject's unlabeled static and two unlabeled walking trials (synthetic, no recording involved).
| Argument or option | What it does | Default |
|---|---|---|
FOLDER |
Folder to write the example session into. | oml-example |
--force |
Overwrite the example files (and their edits) if they exist. | off |
oml serve¶
Start the browser UI on this computer (http://127.0.0.1, and a tunnel's host names).
| Argument or option | What it does | Default |
|---|---|---|
--root, -r |
Folder with C3D files; the UI cannot leave it. | . |
--port |
Port on 127.0.0.1 (another one is chosen if it is busy). | 8765 |
--browser / --no-browser |
Open the UI in the default browser. | on |
--token |
Fixed access token, e.g. to keep a tunnel's link across restarts (default: random). (also $OML_TOKEN) |
|
--public-host |
Also answer for this host name, the one a tunnel such as Cloudflare Tunnel forwards to this port (repeat it for several; default: the server.public_hosts setting). | |
--max-upload-mb |
Largest C3D file an upload may send, in MB (default 100: Cloudflare's limit). |
oml pycgm2¶
The optional pyCGM2 bridge.
oml pycgm2 doctor¶
Find pyCGM2, start it, and say what works (or why not and how to set it up).
oml config¶
Your OpenMotionLabel settings.
oml config list¶
Show every setting, and the settings there are.
oml config get¶
Print one setting.
| Argument or option | What it does | Default |
|---|---|---|
KEY |
Setting name, e.g. pycgm2.python | required |
oml config set¶
Change one setting.
| Argument or option | What it does | Default |
|---|---|---|
KEY |
Setting name, e.g. pycgm2.python | required |
VALUE |
Its value (JSON for lists and numbers). | required |
oml config unset¶
Remove one setting.
| Argument or option | What it does | Default |
|---|---|---|
KEY |
Setting name | required |