Metadata-Version: 2.5
Name: openmotionlabel
Version: 1.0.0rc1
Summary: Marker labeling for optical motion capture (C3D), with a browser UI.
Project-URL: Homepage, https://github.com/MotionFabric/OpenMotionLabel
Project-URL: Documentation, https://motionfabric.github.io/OpenMotionLabel/
Project-URL: Source, https://github.com/MotionFabric/OpenMotionLabel
Project-URL: Issues, https://github.com/MotionFabric/OpenMotionLabel/issues
Project-URL: Changelog, https://github.com/MotionFabric/OpenMotionLabel/blob/main/CHANGELOG.md
Author: Nicolas Van Vlasselaer
License-Expression: PolyForm-Noncommercial-1.0.0
License-File: LICENSE
Keywords: CGM,biomechanics,c3d,gait analysis,labeling,motion capture,vicon
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Requires-Python: >=3.10
Requires-Dist: ezc3d>=1.7.2
Requires-Dist: fastapi>=0.110
Requires-Dist: numpy>=1.24
Requires-Dist: pydantic>=2.6
Requires-Dist: pyyaml>=6.0
Requires-Dist: scipy>=1.11
Requires-Dist: typer>=0.12
Requires-Dist: uvicorn>=0.29
Provides-Extra: dev
Requires-Dist: c3d>=0.5; extra == 'dev'
Requires-Dist: httpx2; (python_version >= '3.11') and extra == 'dev'
Requires-Dist: httpx>=0.27; (python_version < '3.11') and extra == 'dev'
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.6; extra == 'dev'
Requires-Dist: types-pyyaml; extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs-material<10,>=9.5; extra == 'docs'
Description-Content-Type: text/markdown

# OpenMotionLabel

Marker labeling for optical motion capture: an alternative to the labeling part of Vicon
Nexus. OpenMotionLabel reads unlabeled C3D files, labels the markers against a marker set
(Plug-in Gait and CGM built in), lets you fix what it got wrong, fills gaps, finds gait events,
and writes C3D files that Nexus, pyCGM2 and OpenSim accept. It runs on your own computer (macOS,
Windows or Linux), with the interface in your browser.

![The OpenMotionLabel window with a labeled walking trial](https://raw.githubusercontent.com/MotionFabric/OpenMotionLabel/main/docs/assets/overview.png)

**Documentation: <https://motionfabric.github.io/OpenMotionLabel/>**

> **Status:** 1.0.0rc1, a release candidate. See
> [Validation](https://motionfabric.github.io/OpenMotionLabel/validation/) for what is measured
> and the known limitations.

## Try it

Python 3.10 or newer:

```bash
pip install --pre openmotionlabel
```

```bash
oml example ~/oml-example
```

```bash
oml serve --root ~/oml-example
```

`oml example` writes a synthetic session (a static and two walking trials, unlabeled), and
`oml serve` opens the interface in your browser. The
[quick start](https://motionfabric.github.io/OpenMotionLabel/getting-started/quickstart/) walks
through labeling it.

## What it does

- **Auto-labels** a static against a marker-set template, then the session's walking trials
  following the subject's static, flagging uncertain labels.
- **Labeling by hand:** click a label, then a marker; swap, split, unlabel and delete by frame
  range, with undo, redo and an edit log that survives crashes.
- **Fills gaps** (regression, rigid body, pattern, Woltring, spline) with each method's expected
  error, and filters on saving.
- **Finds gait events** from force plates and markers, editable on the timeline.
- **Checks labels with the CGM** through an optional pyCGM2 bridge (CGM1.0 to 2.5, with OpenSim
  for CGM2.2 to 2.5), on Windows, macOS and Linux, without BTK.
- **Keeps files intact:** lossless C3D reading and writing.
- **Shares and scripts:** uploads into `<subject>/<session>/` folders, remote access through a
  Cloudflare tunnel, and a command for every step (`oml label`, `fill`, `events`, `apply`).

## Patient data

OpenMotionLabel processes everything locally; its server answers only on this computer, with an
access token. Recordings of patients must never enter this repository, an issue or a pull
request: `tools/check_no_patient_data.py` blocks C3D and subject files in pre-commit and CI. See
[Privacy and security](https://motionfabric.github.io/OpenMotionLabel/privacy-and-security/).

## License

© 2026 Nicolas Van Vlasselaer. Free for noncommercial use (research, education, personal use
and noncommercial organisations) under the
[PolyForm Noncommercial License 1.0.0](https://github.com/MotionFabric/OpenMotionLabel/blob/main/LICENSE).
Commercial use needs a commercial license: see
[License](https://motionfabric.github.io/OpenMotionLabel/license/). Contributors accept the
[Contributor License Agreement](https://github.com/MotionFabric/OpenMotionLabel/blob/main/CLA.md) once, on their first pull request.

pyCGM2 (CC-BY-SA-4.0) is an optional external dependency that runs in its own process; no pyCGM2
code is included in this repository. The [License](https://motionfabric.github.io/OpenMotionLabel/license/)
page lists the other projects OpenMotionLabel builds on.
