openmotionlabel 1.0.0rc1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. openmotionlabel-1.0.0rc1/.gitignore +55 -0
  2. openmotionlabel-1.0.0rc1/CHANGELOG.md +62 -0
  3. openmotionlabel-1.0.0rc1/LICENSE +75 -0
  4. openmotionlabel-1.0.0rc1/PKG-INFO +115 -0
  5. openmotionlabel-1.0.0rc1/README.md +71 -0
  6. openmotionlabel-1.0.0rc1/SECURITY.md +22 -0
  7. openmotionlabel-1.0.0rc1/docs/assets/events.png +0 -0
  8. openmotionlabel-1.0.0rc1/docs/assets/gaps.png +0 -0
  9. openmotionlabel-1.0.0rc1/docs/assets/overview.png +0 -0
  10. openmotionlabel-1.0.0rc1/docs/assets/quickstart-static.gif +0 -0
  11. openmotionlabel-1.0.0rc1/docs/assets/quickstart-walk.gif +0 -0
  12. openmotionlabel-1.0.0rc1/docs/assets/upload.png +0 -0
  13. openmotionlabel-1.0.0rc1/docs/changelog.md +1 -0
  14. openmotionlabel-1.0.0rc1/docs/development/architecture.md +34 -0
  15. openmotionlabel-1.0.0rc1/docs/development/releasing.md +73 -0
  16. openmotionlabel-1.0.0rc1/docs/getting-started/install.md +69 -0
  17. openmotionlabel-1.0.0rc1/docs/getting-started/quickstart.md +89 -0
  18. openmotionlabel-1.0.0rc1/docs/guide/cgm.md +79 -0
  19. openmotionlabel-1.0.0rc1/docs/guide/command-line.md +58 -0
  20. openmotionlabel-1.0.0rc1/docs/guide/events.md +36 -0
  21. openmotionlabel-1.0.0rc1/docs/guide/gaps-and-filtering.md +54 -0
  22. openmotionlabel-1.0.0rc1/docs/guide/interface.md +43 -0
  23. openmotionlabel-1.0.0rc1/docs/guide/manual-labeling.md +51 -0
  24. openmotionlabel-1.0.0rc1/docs/guide/marker-sets.md +53 -0
  25. openmotionlabel-1.0.0rc1/docs/guide/static-labeling.md +44 -0
  26. openmotionlabel-1.0.0rc1/docs/guide/uploads-and-remote.md +92 -0
  27. openmotionlabel-1.0.0rc1/docs/guide/walking-labeling.md +49 -0
  28. openmotionlabel-1.0.0rc1/docs/index.md +61 -0
  29. openmotionlabel-1.0.0rc1/docs/license.md +36 -0
  30. openmotionlabel-1.0.0rc1/docs/privacy-and-security.md +47 -0
  31. openmotionlabel-1.0.0rc1/docs/reference/cli.md +276 -0
  32. openmotionlabel-1.0.0rc1/docs/reference/files.md +37 -0
  33. openmotionlabel-1.0.0rc1/docs/reference/settings.md +35 -0
  34. openmotionlabel-1.0.0rc1/docs/validation.md +74 -0
  35. openmotionlabel-1.0.0rc1/frontend/.npmrc +4 -0
  36. openmotionlabel-1.0.0rc1/frontend/index.html +12 -0
  37. openmotionlabel-1.0.0rc1/frontend/package-lock.json +2351 -0
  38. openmotionlabel-1.0.0rc1/frontend/package.json +35 -0
  39. openmotionlabel-1.0.0rc1/frontend/src/App.tsx +203 -0
  40. openmotionlabel-1.0.0rc1/frontend/src/Timeline.tsx +202 -0
  41. openmotionlabel-1.0.0rc1/frontend/src/api/client.ts +176 -0
  42. openmotionlabel-1.0.0rc1/frontend/src/api/types.ts +409 -0
  43. openmotionlabel-1.0.0rc1/frontend/src/colors.ts +35 -0
  44. openmotionlabel-1.0.0rc1/frontend/src/commands.ts +85 -0
  45. openmotionlabel-1.0.0rc1/frontend/src/data.test.ts +379 -0
  46. openmotionlabel-1.0.0rc1/frontend/src/data.ts +607 -0
  47. openmotionlabel-1.0.0rc1/frontend/src/hooks.ts +147 -0
  48. openmotionlabel-1.0.0rc1/frontend/src/main.tsx +16 -0
  49. openmotionlabel-1.0.0rc1/frontend/src/panels/CgmPanel.tsx +278 -0
  50. openmotionlabel-1.0.0rc1/frontend/src/panels/Chart.tsx +81 -0
  51. openmotionlabel-1.0.0rc1/frontend/src/panels/EventsPanel.tsx +141 -0
  52. openmotionlabel-1.0.0rc1/frontend/src/panels/FilesPanel.tsx +107 -0
  53. openmotionlabel-1.0.0rc1/frontend/src/panels/GapsPanel.tsx +457 -0
  54. openmotionlabel-1.0.0rc1/frontend/src/panels/MarkerList.tsx +136 -0
  55. openmotionlabel-1.0.0rc1/frontend/src/panels/RightPanel.tsx +217 -0
  56. openmotionlabel-1.0.0rc1/frontend/src/panels/SaveDialog.tsx +130 -0
  57. openmotionlabel-1.0.0rc1/frontend/src/panels/UploadDialog.tsx +278 -0
  58. openmotionlabel-1.0.0rc1/frontend/src/store.test.ts +435 -0
  59. openmotionlabel-1.0.0rc1/frontend/src/store.ts +1093 -0
  60. openmotionlabel-1.0.0rc1/frontend/src/styles.css +1486 -0
  61. openmotionlabel-1.0.0rc1/frontend/src/upload.test.ts +38 -0
  62. openmotionlabel-1.0.0rc1/frontend/src/upload.ts +29 -0
  63. openmotionlabel-1.0.0rc1/frontend/src/viewport/Overlays.tsx +236 -0
  64. openmotionlabel-1.0.0rc1/frontend/src/viewport/Picker.tsx +109 -0
  65. openmotionlabel-1.0.0rc1/frontend/src/viewport/Viewport.tsx +89 -0
  66. openmotionlabel-1.0.0rc1/frontend/src/viewport/layers.tsx +321 -0
  67. openmotionlabel-1.0.0rc1/frontend/tsconfig.json +17 -0
  68. openmotionlabel-1.0.0rc1/frontend/vite.config.ts +17 -0
  69. openmotionlabel-1.0.0rc1/mkdocs.yml +77 -0
  70. openmotionlabel-1.0.0rc1/pyproject.toml +128 -0
  71. openmotionlabel-1.0.0rc1/src/openmotionlabel/__init__.py +3 -0
  72. openmotionlabel-1.0.0rc1/src/openmotionlabel/bridges/__init__.py +1 -0
  73. openmotionlabel-1.0.0rc1/src/openmotionlabel/bridges/pycgm2/__init__.py +31 -0
  74. openmotionlabel-1.0.0rc1/src/openmotionlabel/bridges/pycgm2/btk_compat.py +2802 -0
  75. openmotionlabel-1.0.0rc1/src/openmotionlabel/bridges/pycgm2/client.py +273 -0
  76. openmotionlabel-1.0.0rc1/src/openmotionlabel/bridges/pycgm2/discovery.py +140 -0
  77. openmotionlabel-1.0.0rc1/src/openmotionlabel/bridges/pycgm2/service.py +267 -0
  78. openmotionlabel-1.0.0rc1/src/openmotionlabel/bridges/pycgm2/worker.py +680 -0
  79. openmotionlabel-1.0.0rc1/src/openmotionlabel/cli.py +1139 -0
  80. openmotionlabel-1.0.0rc1/src/openmotionlabel/config.py +84 -0
  81. openmotionlabel-1.0.0rc1/src/openmotionlabel/core/__init__.py +61 -0
  82. openmotionlabel-1.0.0rc1/src/openmotionlabel/core/commands.py +996 -0
  83. openmotionlabel-1.0.0rc1/src/openmotionlabel/core/history.py +79 -0
  84. openmotionlabel-1.0.0rc1/src/openmotionlabel/core/project.py +149 -0
  85. openmotionlabel-1.0.0rc1/src/openmotionlabel/core/state.py +481 -0
  86. openmotionlabel-1.0.0rc1/src/openmotionlabel/core/tracklets.py +226 -0
  87. openmotionlabel-1.0.0rc1/src/openmotionlabel/eval/__init__.py +32 -0
  88. openmotionlabel-1.0.0rc1/src/openmotionlabel/eval/bodies.py +196 -0
  89. openmotionlabel-1.0.0rc1/src/openmotionlabel/eval/dynamic_bench.py +270 -0
  90. openmotionlabel-1.0.0rc1/src/openmotionlabel/eval/event_bench.py +204 -0
  91. openmotionlabel-1.0.0rc1/src/openmotionlabel/eval/example.py +96 -0
  92. openmotionlabel-1.0.0rc1/src/openmotionlabel/eval/fill_bench.py +216 -0
  93. openmotionlabel-1.0.0rc1/src/openmotionlabel/eval/metrics.py +183 -0
  94. openmotionlabel-1.0.0rc1/src/openmotionlabel/eval/static_bench.py +204 -0
  95. openmotionlabel-1.0.0rc1/src/openmotionlabel/eval/synth.py +387 -0
  96. openmotionlabel-1.0.0rc1/src/openmotionlabel/events.py +421 -0
  97. openmotionlabel-1.0.0rc1/src/openmotionlabel/filters.py +127 -0
  98. openmotionlabel-1.0.0rc1/src/openmotionlabel/forceplates.py +223 -0
  99. openmotionlabel-1.0.0rc1/src/openmotionlabel/gapfill/__init__.py +45 -0
  100. openmotionlabel-1.0.0rc1/src/openmotionlabel/gapfill/fill.py +205 -0
  101. openmotionlabel-1.0.0rc1/src/openmotionlabel/gapfill/gaps.py +49 -0
  102. openmotionlabel-1.0.0rc1/src/openmotionlabel/gapfill/methods.py +382 -0
  103. openmotionlabel-1.0.0rc1/src/openmotionlabel/gapfill/planner.py +401 -0
  104. openmotionlabel-1.0.0rc1/src/openmotionlabel/io/__init__.py +23 -0
  105. openmotionlabel-1.0.0rc1/src/openmotionlabel/io/c3d_header.py +291 -0
  106. openmotionlabel-1.0.0rc1/src/openmotionlabel/io/c3d_io.py +763 -0
  107. openmotionlabel-1.0.0rc1/src/openmotionlabel/io/mkr_mp.py +87 -0
  108. openmotionlabel-1.0.0rc1/src/openmotionlabel/io/processing_params.py +83 -0
  109. openmotionlabel-1.0.0rc1/src/openmotionlabel/io/vsk.py +242 -0
  110. openmotionlabel-1.0.0rc1/src/openmotionlabel/labeling/__init__.py +27 -0
  111. openmotionlabel-1.0.0rc1/src/openmotionlabel/labeling/autolabel.py +285 -0
  112. openmotionlabel-1.0.0rc1/src/openmotionlabel/labeling/consensus.py +144 -0
  113. openmotionlabel-1.0.0rc1/src/openmotionlabel/labeling/dynamic_label.py +1153 -0
  114. openmotionlabel-1.0.0rc1/src/openmotionlabel/labeling/pieces.py +106 -0
  115. openmotionlabel-1.0.0rc1/src/openmotionlabel/labeling/static_fit.py +884 -0
  116. openmotionlabel-1.0.0rc1/src/openmotionlabel/labeling/static_label.py +251 -0
  117. openmotionlabel-1.0.0rc1/src/openmotionlabel/labeling/subject.py +303 -0
  118. openmotionlabel-1.0.0rc1/src/openmotionlabel/labeling/template.py +738 -0
  119. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/__init__.py +23 -0
  120. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/library/_pig_upper.yaml +94 -0
  121. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/library/cgm11_lower.yaml +20 -0
  122. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/library/cgm1_kad_lower.yaml +22 -0
  123. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/library/cgm23_lower.yaml +30 -0
  124. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/library/cgm24_full.yaml +3 -0
  125. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/library/cgm24_lower.yaml +24 -0
  126. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/library/pig_full.yaml +3 -0
  127. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/library/pig_lower.yaml +74 -0
  128. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/match.py +57 -0
  129. openmotionlabel-1.0.0rc1/src/openmotionlabel/markerset/schema.py +352 -0
  130. openmotionlabel-1.0.0rc1/src/openmotionlabel/py.typed +0 -0
  131. openmotionlabel-1.0.0rc1/src/openmotionlabel/server/__init__.py +6 -0
  132. openmotionlabel-1.0.0rc1/src/openmotionlabel/server/app.py +608 -0
  133. openmotionlabel-1.0.0rc1/src/openmotionlabel/server/session.py +837 -0
  134. openmotionlabel-1.0.0rc1/src/openmotionlabel/server/uploads.py +204 -0
  135. openmotionlabel-1.0.0rc1/src/openmotionlabel/web/assets/index-BwFhVoK7.css +1 -0
  136. openmotionlabel-1.0.0rc1/src/openmotionlabel/web/assets/index-DVcC6VTC.js +4246 -0
  137. openmotionlabel-1.0.0rc1/src/openmotionlabel/web/index.html +13 -0
  138. openmotionlabel-1.0.0rc1/tests/btk_synthetic.py +97 -0
  139. openmotionlabel-1.0.0rc1/tests/conftest.py +234 -0
  140. openmotionlabel-1.0.0rc1/tests/data/btk_reference.json +1 -0
  141. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/Data/intellEventModels/version0/fo_intellevent.onnx +0 -0
  142. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/Data/intellEventModels/version0/ic_intellevent.onnx +0 -0
  143. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/README.md +8 -0
  144. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Events/__init__.py +1 -0
  145. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Events/eventFilters.py +14 -0
  146. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Events/procedures/__init__.py +1 -0
  147. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Events/procedures/intellEventProcedures.py +20 -0
  148. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Gap/__init__.py +1 -0
  149. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Gap/gapFillingProcedures.py +9 -0
  150. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Gap/gapFilters.py +39 -0
  151. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Lib/CGM/__init__.py +1 -0
  152. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Lib/CGM/cgm1_1.py +60 -0
  153. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Lib/Processing/__init__.py +1 -0
  154. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Lib/Processing/progression.py +5 -0
  155. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Lib/__init__.py +1 -0
  156. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Lib/eventDetector.py +40 -0
  157. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Nexus/__init__.py +1 -0
  158. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Nexus/vskTools.py +10 -0
  159. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Settings/CGM1_1-pyCGM2.settings +3 -0
  160. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Tools/__init__.py +1 -0
  161. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Tools/btkTools.py +15 -0
  162. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Utils/__init__.py +1 -0
  163. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/Utils/files.py +21 -0
  164. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/__init__.py +12 -0
  165. openmotionlabel-1.0.0rc1/tests/pycgm2_standin/pyCGM2/enums.py +10 -0
  166. openmotionlabel-1.0.0rc1/tests/test_btk_compat.py +235 -0
  167. openmotionlabel-1.0.0rc1/tests/test_c3d_header.py +70 -0
  168. openmotionlabel-1.0.0rc1/tests/test_c3d_io.py +217 -0
  169. openmotionlabel-1.0.0rc1/tests/test_cli.py +179 -0
  170. openmotionlabel-1.0.0rc1/tests/test_core.py +443 -0
  171. openmotionlabel-1.0.0rc1/tests/test_docs.py +72 -0
  172. openmotionlabel-1.0.0rc1/tests/test_dynamic.py +324 -0
  173. openmotionlabel-1.0.0rc1/tests/test_editing.py +463 -0
  174. openmotionlabel-1.0.0rc1/tests/test_eval.py +226 -0
  175. openmotionlabel-1.0.0rc1/tests/test_events.py +298 -0
  176. openmotionlabel-1.0.0rc1/tests/test_filters.py +96 -0
  177. openmotionlabel-1.0.0rc1/tests/test_forceplates.py +67 -0
  178. openmotionlabel-1.0.0rc1/tests/test_gapfill.py +480 -0
  179. openmotionlabel-1.0.0rc1/tests/test_guard.py +54 -0
  180. openmotionlabel-1.0.0rc1/tests/test_importers.py +149 -0
  181. openmotionlabel-1.0.0rc1/tests/test_labeling.py +254 -0
  182. openmotionlabel-1.0.0rc1/tests/test_markerset.py +196 -0
  183. openmotionlabel-1.0.0rc1/tests/test_private_data.py +285 -0
  184. openmotionlabel-1.0.0rc1/tests/test_pycgm2.py +438 -0
  185. openmotionlabel-1.0.0rc1/tests/test_pycgm2_real.py +131 -0
  186. openmotionlabel-1.0.0rc1/tests/test_server.py +180 -0
  187. openmotionlabel-1.0.0rc1/tests/test_uploads.py +243 -0
  188. openmotionlabel-1.0.0rc1/tools/btk_reference/README.md +124 -0
  189. openmotionlabel-1.0.0rc1/tools/btk_reference/build_reference_env.sh +118 -0
  190. openmotionlabel-1.0.0rc1/tools/btk_reference/compare_readers.py +322 -0
  191. openmotionlabel-1.0.0rc1/tools/btk_reference/compare_runs.py +132 -0
  192. openmotionlabel-1.0.0rc1/tools/btk_reference/compare_written.py +101 -0
  193. openmotionlabel-1.0.0rc1/tools/btk_reference/make_cases.py +121 -0
  194. openmotionlabel-1.0.0rc1/tools/btk_reference/patch_btk.py +117 -0
  195. openmotionlabel-1.0.0rc1/tools/btk_reference/probe_btk.py +143 -0
  196. openmotionlabel-1.0.0rc1/tools/btk_reference/reference_values.py +126 -0
  197. openmotionlabel-1.0.0rc1/tools/btk_reference/roundtrip.py +63 -0
  198. openmotionlabel-1.0.0rc1/tools/btk_reference/run_cases.py +367 -0
  199. openmotionlabel-1.0.0rc1/tools/check_no_patient_data.py +64 -0
  200. openmotionlabel-1.0.0rc1/tools/docs/reference.py +205 -0
  201. openmotionlabel-1.0.0rc1/tools/public_pipeline/README.md +33 -0
  202. openmotionlabel-1.0.0rc1/tools/public_pipeline/fetch_van_criekinge.py +190 -0
  203. openmotionlabel-1.0.0rc1/tools/public_pipeline/run_pipeline.py +300 -0
  204. openmotionlabel-1.0.0rc1/tools/release/smoke_test.py +145 -0
@@ -0,0 +1,55 @@
1
+ # ---------------------------------------------------------------------------
2
+ # Patient and other private data: NEVER commit these.
3
+ # Only synthetic or public, license-checked files may live in tests/data/.
4
+ # tools/check_no_patient_data.py enforces the same rules in pre-commit and CI.
5
+ # ---------------------------------------------------------------------------
6
+ Test_data/
7
+ *.c3d
8
+ !tests/data/**/*.c3d
9
+ *.c3d.orig
10
+ # OpenMotionLabel edit logs live next to their (private) trials
11
+ *.oml.jsonl
12
+ *.oml.jsonl.stale
13
+ *.vsk
14
+ *.mp
15
+ *.enf
16
+ *.x1d
17
+ *.x2d
18
+ *.xcp
19
+ *.system
20
+ *.avi
21
+ *.mp4
22
+ *.gt.npz
23
+
24
+ # Python
25
+ __pycache__/
26
+ *.py[cod]
27
+ .venv/
28
+ venv/
29
+ build/
30
+ dist/
31
+ *.egg-info/
32
+ .pytest_cache/
33
+ .mypy_cache/
34
+ .ruff_cache/
35
+ .coverage
36
+ htmlcov/
37
+
38
+ # Frontend
39
+ frontend/node_modules/
40
+ frontend/dist/
41
+ frontend/*.tsbuildinfo
42
+ # The built UI is generated into the package and bundled into the wheel.
43
+ src/openmotionlabel/web/
44
+
45
+ # Local evaluation output
46
+ eval_out/
47
+
48
+ # OS / editors
49
+ .DS_Store
50
+ .idea/
51
+ .vscode/
52
+
53
+ .claude/
54
+ # Built documentation (mkdocs build)
55
+ site/
@@ -0,0 +1,62 @@
1
+ # Changelog
2
+
3
+ All notable changes to OpenMotionLabel. Versions follow [semantic versioning](https://semver.org/).
4
+
5
+ ## Unreleased
6
+
7
+ ## 1.0.0rc1
8
+
9
+ The first release candidate of 1.0: everything below is new.
10
+
11
+ ### Labeling
12
+
13
+ - A browser interface (`oml serve`) with a data manager, a 3D view, a timeline with gait events,
14
+ a marker list, and marker and force-plate graphs.
15
+ - Labeling by hand: click a label, then a marker, with auto-advance; label a piece, a whole
16
+ trajectory, from or up to a frame, a frame range or one frame; swap, split, unlabel, delete and
17
+ delete unlabeled; undo and redo.
18
+ - Automatic labeling of static trials against a marker-set template, with templates learned from
19
+ your own labeled statics (`oml learn`), and of walking trials following the subject's static.
20
+ Uncertain labels are flagged, and doubtful samples stay unlabeled.
21
+ - Marker sets: Plug-in Gait lower and full body, CGM1.0 with KAD, CGM1.1, CGM2.3 and CGM2.4, and
22
+ your own in YAML.
23
+ - An edit log next to each trial: crash recovery, the undo history across saves, and replay with
24
+ `oml apply`.
25
+
26
+ ### Gaps, filtering and events
27
+
28
+ - Gap filling by regression, rigid body, pattern, Woltring and cubic spline, each previewed with
29
+ its expected error, and "the best method" for every gap at once.
30
+ - Zero-lag Butterworth and GCV smoothing-spline filtering on saving.
31
+ - Gait events from clean force-plate contacts and from the heel, toe and pelvis markers, edited
32
+ on the timeline.
33
+ - Force plates of types 1 to 4: ground reaction force, moments, centre of pressure and free
34
+ moment, shown in 3D and in graphs.
35
+
36
+ ### pyCGM2 (optional)
37
+
38
+ - A bridge to pyCGM2 in its own environment: CGM1.0 to 2.5 checks, Kalman and PCA gap filling,
39
+ O'Connor and intellEvent events, and the subject's measurements.
40
+ - pyCGM2 runs on Windows, macOS and Linux without BTK, through a BTK-compatible layer over ezc3d
41
+ that gives the same results as BTK, including the TRC files OpenSim reads.
42
+ - CGM2.2 to 2.5 with OpenSim's inverse kinematics on macOS and Linux (pyCGM2's Windows-only paths
43
+ are handled), and the errors pyCGM2 logs and carries on after are reported.
44
+
45
+ ### Files, sharing and the command line
46
+
47
+ - Lossless C3D reading and writing, including `POINT:LABELS2` and every parameter group.
48
+ - Uploading C3D files into `<subject>/<session>/` folders, and remote access through a
49
+ Cloudflare tunnel (`--public-host`, a fixed `OML_TOKEN`, secure cookies).
50
+ - Commands for every step: `oml label`, `fill`, `events`, `apply`, `learn`, `info`, `coverage`,
51
+ `check-io`, `synth`, the `eval-*` benchmarks, `pycgm2 doctor` and `config`.
52
+ - `oml example` writes a synthetic session to try everything on.
53
+ - Documentation at <https://motionfabric.github.io/OpenMotionLabel/>.
54
+
55
+ ### Known limitations
56
+
57
+ - Hand and wrist markers are the weak spot of auto-labeling, especially in statics; check them by
58
+ eye. A marker the lab doesn't use but the marker set expects (such as RBAK) can draw a
59
+ neighbouring marker's label.
60
+ - Verified on macOS. Windows and Linux are covered by the test suite in continuous integration;
61
+ opening the written files in Vicon Nexus, Firefox and Safari, and remote access through a real
62
+ tunnel are not verified yet.
@@ -0,0 +1,75 @@
1
+ Required Notice: Copyright (c) 2026 Nicolas Van Vlasselaer
2
+
3
+ # PolyForm Noncommercial License 1.0.0
4
+
5
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
6
+
7
+ ## Acceptance
8
+
9
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
14
+
15
+ ## Distribution License
16
+
17
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
18
+
19
+ ## Notices
20
+
21
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
22
+
23
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
24
+
25
+ ## Changes and New Works License
26
+
27
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
28
+
29
+ ## Patent License
30
+
31
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
32
+
33
+ ## Noncommercial Purposes
34
+
35
+ Any noncommercial purpose is a permitted purpose.
36
+
37
+ ## Personal Uses
38
+
39
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
40
+
41
+ ## Noncommercial Organizations
42
+
43
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
44
+
45
+ ## Fair Use
46
+
47
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
48
+
49
+ ## No Other Rights
50
+
51
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
52
+
53
+ ## Patent Defense
54
+
55
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
56
+
57
+ ## Violations
58
+
59
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
60
+
61
+ ## No Liability
62
+
63
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
64
+
65
+ ## Definitions
66
+
67
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
68
+
69
+ **You** refers to the individual or entity agreeing to these terms.
70
+
71
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
72
+
73
+ **Your licenses** are all the licenses granted to you for the software under these terms.
74
+
75
+ **Use** means anything you do with the software requiring one of your licenses.
@@ -0,0 +1,115 @@
1
+ Metadata-Version: 2.5
2
+ Name: openmotionlabel
3
+ Version: 1.0.0rc1
4
+ Summary: Marker labeling for optical motion capture (C3D), with a browser UI.
5
+ Project-URL: Homepage, https://github.com/MotionFabric/OpenMotionLabel
6
+ Project-URL: Documentation, https://motionfabric.github.io/OpenMotionLabel/
7
+ Project-URL: Source, https://github.com/MotionFabric/OpenMotionLabel
8
+ Project-URL: Issues, https://github.com/MotionFabric/OpenMotionLabel/issues
9
+ Project-URL: Changelog, https://github.com/MotionFabric/OpenMotionLabel/blob/main/CHANGELOG.md
10
+ Author: Nicolas Van Vlasselaer
11
+ License-Expression: PolyForm-Noncommercial-1.0.0
12
+ License-File: LICENSE
13
+ Keywords: CGM,biomechanics,c3d,gait analysis,labeling,motion capture,vicon
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Environment :: Web Environment
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
24
+ Requires-Python: >=3.10
25
+ Requires-Dist: ezc3d>=1.7.2
26
+ Requires-Dist: fastapi>=0.110
27
+ Requires-Dist: numpy>=1.24
28
+ Requires-Dist: pydantic>=2.6
29
+ Requires-Dist: pyyaml>=6.0
30
+ Requires-Dist: scipy>=1.11
31
+ Requires-Dist: typer>=0.12
32
+ Requires-Dist: uvicorn>=0.29
33
+ Provides-Extra: dev
34
+ Requires-Dist: c3d>=0.5; extra == 'dev'
35
+ Requires-Dist: httpx2; (python_version >= '3.11') and extra == 'dev'
36
+ Requires-Dist: httpx>=0.27; (python_version < '3.11') and extra == 'dev'
37
+ Requires-Dist: mypy>=1.10; extra == 'dev'
38
+ Requires-Dist: pytest>=8; extra == 'dev'
39
+ Requires-Dist: ruff>=0.6; extra == 'dev'
40
+ Requires-Dist: types-pyyaml; extra == 'dev'
41
+ Provides-Extra: docs
42
+ Requires-Dist: mkdocs-material<10,>=9.5; extra == 'docs'
43
+ Description-Content-Type: text/markdown
44
+
45
+ # OpenMotionLabel
46
+
47
+ Marker labeling for optical motion capture: an alternative to the labeling part of Vicon
48
+ Nexus. OpenMotionLabel reads unlabeled C3D files, labels the markers against a marker set
49
+ (Plug-in Gait and CGM built in), lets you fix what it got wrong, fills gaps, finds gait events,
50
+ and writes C3D files that Nexus, pyCGM2 and OpenSim accept. It runs on your own computer (macOS,
51
+ Windows or Linux), with the interface in your browser.
52
+
53
+ ![The OpenMotionLabel window with a labeled walking trial](https://raw.githubusercontent.com/MotionFabric/OpenMotionLabel/main/docs/assets/overview.png)
54
+
55
+ **Documentation: <https://motionfabric.github.io/OpenMotionLabel/>**
56
+
57
+ > **Status:** 1.0.0rc1, a release candidate. See
58
+ > [Validation](https://motionfabric.github.io/OpenMotionLabel/validation/) for what is measured
59
+ > and the known limitations.
60
+
61
+ ## Try it
62
+
63
+ Python 3.10 or newer:
64
+
65
+ ```bash
66
+ pip install --pre openmotionlabel
67
+ ```
68
+
69
+ ```bash
70
+ oml example ~/oml-example
71
+ ```
72
+
73
+ ```bash
74
+ oml serve --root ~/oml-example
75
+ ```
76
+
77
+ `oml example` writes a synthetic session (a static and two walking trials, unlabeled), and
78
+ `oml serve` opens the interface in your browser. The
79
+ [quick start](https://motionfabric.github.io/OpenMotionLabel/getting-started/quickstart/) walks
80
+ through labeling it.
81
+
82
+ ## What it does
83
+
84
+ - **Auto-labels** a static against a marker-set template, then the session's walking trials
85
+ following the subject's static, flagging uncertain labels.
86
+ - **Labeling by hand:** click a label, then a marker; swap, split, unlabel and delete by frame
87
+ range, with undo, redo and an edit log that survives crashes.
88
+ - **Fills gaps** (regression, rigid body, pattern, Woltring, spline) with each method's expected
89
+ error, and filters on saving.
90
+ - **Finds gait events** from force plates and markers, editable on the timeline.
91
+ - **Checks labels with the CGM** through an optional pyCGM2 bridge (CGM1.0 to 2.5, with OpenSim
92
+ for CGM2.2 to 2.5), on Windows, macOS and Linux, without BTK.
93
+ - **Keeps files intact:** lossless C3D reading and writing.
94
+ - **Shares and scripts:** uploads into `<subject>/<session>/` folders, remote access through a
95
+ Cloudflare tunnel, and a command for every step (`oml label`, `fill`, `events`, `apply`).
96
+
97
+ ## Patient data
98
+
99
+ OpenMotionLabel processes everything locally; its server answers only on this computer, with an
100
+ access token. Recordings of patients must never enter this repository, an issue or a pull
101
+ request: `tools/check_no_patient_data.py` blocks C3D and subject files in pre-commit and CI. See
102
+ [Privacy and security](https://motionfabric.github.io/OpenMotionLabel/privacy-and-security/).
103
+
104
+ ## License
105
+
106
+ © 2026 Nicolas Van Vlasselaer. Free for noncommercial use (research, education, personal use
107
+ and noncommercial organisations) under the
108
+ [PolyForm Noncommercial License 1.0.0](https://github.com/MotionFabric/OpenMotionLabel/blob/main/LICENSE).
109
+ Commercial use needs a commercial license: see
110
+ [License](https://motionfabric.github.io/OpenMotionLabel/license/). Contributors accept the
111
+ [Contributor License Agreement](https://github.com/MotionFabric/OpenMotionLabel/blob/main/CLA.md) once, on their first pull request.
112
+
113
+ pyCGM2 (CC-BY-SA-4.0) is an optional external dependency that runs in its own process; no pyCGM2
114
+ code is included in this repository. The [License](https://motionfabric.github.io/OpenMotionLabel/license/)
115
+ page lists the other projects OpenMotionLabel builds on.
@@ -0,0 +1,71 @@
1
+ # OpenMotionLabel
2
+
3
+ Marker labeling for optical motion capture: an alternative to the labeling part of Vicon
4
+ Nexus. OpenMotionLabel reads unlabeled C3D files, labels the markers against a marker set
5
+ (Plug-in Gait and CGM built in), lets you fix what it got wrong, fills gaps, finds gait events,
6
+ and writes C3D files that Nexus, pyCGM2 and OpenSim accept. It runs on your own computer (macOS,
7
+ Windows or Linux), with the interface in your browser.
8
+
9
+ ![The OpenMotionLabel window with a labeled walking trial](https://raw.githubusercontent.com/MotionFabric/OpenMotionLabel/main/docs/assets/overview.png)
10
+
11
+ **Documentation: <https://motionfabric.github.io/OpenMotionLabel/>**
12
+
13
+ > **Status:** 1.0.0rc1, a release candidate. See
14
+ > [Validation](https://motionfabric.github.io/OpenMotionLabel/validation/) for what is measured
15
+ > and the known limitations.
16
+
17
+ ## Try it
18
+
19
+ Python 3.10 or newer:
20
+
21
+ ```bash
22
+ pip install --pre openmotionlabel
23
+ ```
24
+
25
+ ```bash
26
+ oml example ~/oml-example
27
+ ```
28
+
29
+ ```bash
30
+ oml serve --root ~/oml-example
31
+ ```
32
+
33
+ `oml example` writes a synthetic session (a static and two walking trials, unlabeled), and
34
+ `oml serve` opens the interface in your browser. The
35
+ [quick start](https://motionfabric.github.io/OpenMotionLabel/getting-started/quickstart/) walks
36
+ through labeling it.
37
+
38
+ ## What it does
39
+
40
+ - **Auto-labels** a static against a marker-set template, then the session's walking trials
41
+ following the subject's static, flagging uncertain labels.
42
+ - **Labeling by hand:** click a label, then a marker; swap, split, unlabel and delete by frame
43
+ range, with undo, redo and an edit log that survives crashes.
44
+ - **Fills gaps** (regression, rigid body, pattern, Woltring, spline) with each method's expected
45
+ error, and filters on saving.
46
+ - **Finds gait events** from force plates and markers, editable on the timeline.
47
+ - **Checks labels with the CGM** through an optional pyCGM2 bridge (CGM1.0 to 2.5, with OpenSim
48
+ for CGM2.2 to 2.5), on Windows, macOS and Linux, without BTK.
49
+ - **Keeps files intact:** lossless C3D reading and writing.
50
+ - **Shares and scripts:** uploads into `<subject>/<session>/` folders, remote access through a
51
+ Cloudflare tunnel, and a command for every step (`oml label`, `fill`, `events`, `apply`).
52
+
53
+ ## Patient data
54
+
55
+ OpenMotionLabel processes everything locally; its server answers only on this computer, with an
56
+ access token. Recordings of patients must never enter this repository, an issue or a pull
57
+ request: `tools/check_no_patient_data.py` blocks C3D and subject files in pre-commit and CI. See
58
+ [Privacy and security](https://motionfabric.github.io/OpenMotionLabel/privacy-and-security/).
59
+
60
+ ## License
61
+
62
+ © 2026 Nicolas Van Vlasselaer. Free for noncommercial use (research, education, personal use
63
+ and noncommercial organisations) under the
64
+ [PolyForm Noncommercial License 1.0.0](https://github.com/MotionFabric/OpenMotionLabel/blob/main/LICENSE).
65
+ Commercial use needs a commercial license: see
66
+ [License](https://motionfabric.github.io/OpenMotionLabel/license/). Contributors accept the
67
+ [Contributor License Agreement](https://github.com/MotionFabric/OpenMotionLabel/blob/main/CLA.md) once, on their first pull request.
68
+
69
+ pyCGM2 (CC-BY-SA-4.0) is an optional external dependency that runs in its own process; no pyCGM2
70
+ code is included in this repository. The [License](https://motionfabric.github.io/OpenMotionLabel/license/)
71
+ page lists the other projects OpenMotionLabel builds on.
@@ -0,0 +1,22 @@
1
+ # Security policy
2
+
3
+ OpenMotionLabel handles motion-capture recordings, often of patients. Its server listens on
4
+ 127.0.0.1 only, answers only requests addressed to localhost (or to host names you allow for a
5
+ tunnel), and needs an access token. See
6
+ [Privacy and security](https://motionfabric.github.io/OpenMotionLabel/privacy-and-security/) in
7
+ the documentation for the whole model.
8
+
9
+ ## Supported versions
10
+
11
+ Security fixes go into the latest release. During the 1.0 release candidates, that is the latest
12
+ release candidate.
13
+
14
+ ## Reporting a vulnerability
15
+
16
+ Please report vulnerabilities privately through
17
+ [GitHub's security advisories](https://github.com/MotionFabric/OpenMotionLabel/security/advisories/new),
18
+ not in a public issue. Include what you found, how to reproduce it, and what an attacker could do
19
+ with it. Do not include patient recordings or anything that identifies a person.
20
+
21
+ The maintainers will acknowledge your report and keep you informed. Once a fix is released, the
22
+ advisory is published with credit to you, unless you prefer otherwise.
@@ -0,0 +1 @@
1
+ --8<-- "CHANGELOG.md"
@@ -0,0 +1,34 @@
1
+ # Architecture
2
+
3
+ ```
4
+ Browser (React, TypeScript, three.js) Python (FastAPI) pyCGM2 environment
5
+ ┌────────────────────────────────┐ HTTP ┌──────────────────────────┐ JSON ┌──────────────────────┐
6
+ │ 3D view, timeline, graphs, │ ───────► │ server/ routes, session│ lines │ bridges/pycgm2/ │
7
+ │ marker list, panels │ ◄─────── │ core/ state, commands│ ─────► │ worker.py │
8
+ │ zustand store: a mirror of the │ binary │ io/ C3D (ezc3d) │ C3D │ btk_compat.py │
9
+ │ session, typed arrays │ arrays │ labeling/ auto-labeling │ files │ (pyCGM2, OpenSim) │
10
+ └────────────────────────────────┘ │ gapfill/ filters events │ └──────────────────────┘
11
+ │ forceplates cli │
12
+ └──────────────────────────┘
13
+ ```
14
+
15
+ - **The backend owns the state.** The server holds the open trials, their labels and the undo
16
+ history. The interface and the command line send the same **commands** (`core/commands.py`),
17
+ and the server answers with small changes. Point data travel once, as binary arrays.
18
+ - **Tracklets** are the unit of labeling: one continuous run of one trajectory. A label is
19
+ constant within a tracklet and appears at most once per frame; range edits split tracklets
20
+ first. Every command records what it changed, so undo is exact and replaying a log gives
21
+ exactly the same labels.
22
+ - **Edit logs** (`core/project.py`) hold the source file's SHA-256 and the commands, as JSON
23
+ lines next to the trial.
24
+ - **C3D input and output** (`io/c3d_io.py`) go through ezc3d, keeping every parameter, analog
25
+ channel and event, and the unknown groups untouched.
26
+ - **Auto-labeling** (`labeling/`): statics are fitted to a marker-set template (rigid clusters of
27
+ markers, several poses and headings, Hungarian assignment); walking trials follow the subject's
28
+ static, tracklet by tracklet, leaving doubtful samples unlabeled.
29
+ - **The pyCGM2 bridge** runs pyCGM2 in its own process and Python environment. `worker.py`
30
+ speaks JSON lines over stdin and stdout and exchanges data as C3D files. It runs with Python
31
+ 3.9+ and the standard library only, and gives pyCGM2 `btk_compat.py`, BTK's interface over
32
+ ezc3d, so BTK is not needed. OpenMotionLabel itself never imports pyCGM2.
33
+ - **The interface** is built with Vite into `src/openmotionlabel/web/` and shipped inside the
34
+ Python wheel, so installing needs no Node.js.
@@ -0,0 +1,73 @@
1
+ # Releasing
2
+
3
+ Releases are built and published by the `release` workflow when a version tag is pushed. The
4
+ interface is built into the package first, so the wheel and the source archive install without
5
+ Node.js.
6
+
7
+ ## Once: set up publishing and contributions
8
+
9
+ 1. **PyPI trusted publishing:** on [pypi.org](https://pypi.org), add a pending trusted publisher
10
+ for the project `openmotionlabel`: owner `MotionFabric`, repository `OpenMotionLabel`,
11
+ workflow `release.yml`, environment `pypi`. No API token is stored anywhere.
12
+ 2. **GitHub environment:** in the repository's settings, create the environment `pypi`
13
+ (optionally with required reviewers, so a person approves each upload).
14
+ 3. **Documentation:** in the repository's Pages settings, choose "GitHub Actions" as the source.
15
+ The `docs` workflow then publishes the site at
16
+ <https://motionfabric.github.io/OpenMotionLabel/> on every push to `main`.
17
+ 4. **Contributor License Agreement:** sign in to [cla-assistant.io](https://cla-assistant.io)
18
+ with GitHub and install its GitHub App for `MotionFabric`. Copy `CLA.md` into a GitHub gist
19
+ and link the gist to `MotionFabric/OpenMotionLabel`. In its settings, exempt yourself and
20
+ bots such as `dependabot[bot]`. Then add a branch protection rule for `main` that requires the
21
+ CLA assistant's status check, so a pull request can't be merged until every author of its
22
+ commits has accepted. When `CLA.md` changes, update the gist too: contributors are then
23
+ asked to accept the new version.
24
+
25
+ ## Each release
26
+
27
+ 1. Update the version in `src/openmotionlabel/__init__.py` (for example `1.0.0` or `1.0.1rc1`).
28
+ 2. In `CHANGELOG.md`, move the "Unreleased" entries under the new version.
29
+ 3. Check locally:
30
+
31
+ ```bash
32
+ pytest && ruff check . && mypy
33
+ ```
34
+
35
+ ```bash
36
+ python tools/docs/reference.py --check && mkdocs build --strict
37
+ ```
38
+
39
+ 4. Commit, then tag and push:
40
+
41
+ ```bash
42
+ git tag v1.0.0
43
+ ```
44
+
45
+ ```bash
46
+ git push origin main v1.0.0
47
+ ```
48
+
49
+ The workflow builds the interface and the packages, installs the wheel on Windows, macOS and
50
+ Linux and runs a smoke test there (`tools/release/smoke_test.py`: the example session labeled,
51
+ filled and given events, and the server answering), then publishes to PyPI and creates a GitHub
52
+ release with the files. A tag with `rc`, `a` or `b` in it is published as a pre-release.
53
+
54
+ ## Building by hand
55
+
56
+ ```bash
57
+ cd frontend && npm ci && npm run build && cd ..
58
+ ```
59
+
60
+ ```bash
61
+ python -m pip install build twine
62
+ ```
63
+
64
+ ```bash
65
+ python -m build && twine check dist/*
66
+ ```
67
+
68
+ ```bash
69
+ python tools/release/smoke_test.py
70
+ ```
71
+
72
+ The smoke test runs against the installed `oml`, so run it in a fresh environment where the
73
+ built wheel is installed.
@@ -0,0 +1,69 @@
1
+ # Install
2
+
3
+ OpenMotionLabel needs Python 3.10 or newer (3.10 to 3.13 are tested) on macOS, Windows or
4
+ Linux, and a current browser. The interface is developed in Chrome and Edge; Firefox and Safari
5
+ should work but are less tested.
6
+
7
+ ## With pip
8
+
9
+ In a terminal (on Windows: PowerShell or a command prompt), preferably in a virtual
10
+ environment:
11
+
12
+ ```bash
13
+ python -m venv oml-env
14
+ ```
15
+
16
+ ```bash
17
+ source oml-env/bin/activate
18
+ ```
19
+
20
+ On Windows, activate it with `oml-env\Scripts\activate` instead. Then install:
21
+
22
+ ```bash
23
+ pip install --pre openmotionlabel
24
+ ```
25
+
26
+ `--pre` is needed while 1.0 is a release candidate. The package includes the browser
27
+ interface; there is nothing else to install. Check it with:
28
+
29
+ ```bash
30
+ oml --version
31
+ ```
32
+
33
+ ## With uv
34
+
35
+ [uv](https://docs.astral.sh/uv/) runs it without a separate environment:
36
+
37
+ ```bash
38
+ uvx --from openmotionlabel --prerelease allow oml serve --root /path/to/your/c3d/folder
39
+ ```
40
+
41
+ ## Upgrading
42
+
43
+ ```bash
44
+ pip install --pre --upgrade openmotionlabel
45
+ ```
46
+
47
+ Your settings (`~/.openmotionlabel/`) and the edit logs next to your trials are kept.
48
+
49
+ ## Optional: pyCGM2
50
+
51
+ The CGM checks need [pyCGM2](https://github.com/pyCGM2/pyCGM2) in a separate conda
52
+ environment. Nothing else depends on it; see [CGM checks with pyCGM2](../guide/cgm.md).
53
+
54
+ ## From source
55
+
56
+ ```bash
57
+ git clone https://github.com/MotionFabric/OpenMotionLabel.git
58
+ ```
59
+
60
+ ```bash
61
+ cd OpenMotionLabel && python -m pip install -e ".[dev]"
62
+ ```
63
+
64
+ ```bash
65
+ cd frontend && npm ci && npm run build
66
+ ```
67
+
68
+ Building the interface needs Node.js 20.19 or newer. [Architecture](../development/architecture.md)
69
+ explains how the parts fit together.