Skip to content

Latest commit

 

History

127 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenBiomechanics Project (OBP) Documentation

The OpenBiomechanics Project is an initiative started by Driveline Baseball Research & Development to provide raw (in the form of cleaned C3D files) and processed (full signal + point of interest) sports biomechanics data to the general public. For more information, read the documentation below and visit the project homepage.

IMG_5797.JPG

What's New

2026-07-19: validated provisional OBP-CV calibration

  • Cross-validated, full-frame-monotonic intrinsics for 8 OptiTrack, 4 Edgertronic, and 1 iPhone feed.
  • A held-out-qualified eight-camera OptiTrack pose graph with independent loop closure of 0.072° and 3.27 mm in camera-19-relative coordinates.
  • Exact source hashes, timing diagnostics, reproducible scripts, automated safeguards, and documented rejected views and camera-pair fits.
  • A concrete cube, CS-200, epipolar, and undistortion-grid annotation plan for reaching final lab-frame calibration.

2026-07-04: repository overhaul

Warning

Breaking — git history was rewritten. The repository history was purged to remove ~2 GB of large binaries, shrinking .git from 2.2 GB to ~25 MB (a fresh clone is now ~28 MB). If you have an existing clone or fork, delete it and re-clone — old commit hashes no longer exist and a git pull will not reconcile. Nothing in the current file tree changed; only history was rewritten.

Important

The large data no longer lives in git. Raw C3D files, processed full-signal archives, computer-vision demo media, and the Mokka installer are now distributed via GitHub Releases. Run scripts/download_data.sh to fetch them. POI and metadata CSVs remain in-repo.

Major changes

  • History purge — large binaries removed from all git history (see the warning above).
  • Data → GitHub Releasesdataset-v1 (raw C3D + full-signal), cv-media-v1 (demo media), tools-mokka-0.6.2 (C3D viewer). Fetch with scripts/download_data.sh.
  • Dual license split — code is now MIT (LICENSE-CODE.md); data + documentation stay CC BY-NC-SA 4.0 (LICENSE-DATA.md), including the professional-sports-organization / financial-firm exclusion.

Minor changes / additions

  • New toolingobp/ pandas loader package and runnable examples/.
  • New metadata — machine-readable data dictionaries (<module>/data/data_dictionary.csv + data_dictionary.json), a DATASHEET.md, and CITATION.cff.
  • Reproducibility — pinned requirements.txt per module; agent guide in CLAUDE.md.
  • Docs & code fixes — corrected POI/metadata dictionaries (fixed a broken entry, added undocumented columns, fixed the rejc landmark), removed copyrighted textbook PDFs in favor of cited references, de-duplicated and parameterized the computer-vision scripts, and removed committed cruft (.DS_Store, hardcoded paths/PII in notebooks).

Contents

Modules

Module Description Link
Baseball Pitching Full-signal + point-of-interest kinematics/kinetics for fastball trials. baseball_pitching/
Baseball Hitting Full-signal + point-of-interest biomechanics for baseball swings. baseball_hitting/
High Performance Force-plate and physical-assessment data paired with the mocap athletes. high_performance/
Computer Vision OBP-CV markerless/2D examples, calibration, and pose tutorials. computer_vision/
Additional Resources Tutorials, references, and supporting material. additional_resources/

Dataset at a glance

Approximate figures — see each module's README for exact counts and definitions.

  • Pitching: ~411 fastball trials across ~100 athletes.
  • Hitting: swing trials across ~99 athletes.
  • High Performance: force-plate and physical-assessment data for the participating athletes.
  • Population: most participants are collegiate-level.

Getting the Data

To keep the repository lightweight, the large archives are distributed via GitHub Releases rather than tracked in git:

  • dataset-v1 — processed full-signal archives (pitching + hitting) plus the raw pitching_c3d.zip and hitting_c3d.zip.
  • cv-media-v1cv_media.zip, the computer-vision demo media; restore by unzipping at the repo root.
  • tools-mokka-0.6.2 — Mokka installers for viewing C3D files.

Run scripts/download_data.sh to fetch and unpack the release assets into the correct locations.

Point-of-interest (POI) and metadata CSVs remain in-repo under each module's data/ folder, so summary analyses work without downloading the full archives.

Quickstart

A small helper package, obp/, resolves data paths and loads the in-repo CSVs with pandas:

import sys; sys.path.insert(0, "path/to/openbiomechanics")
import obp

poi = obp.load_poi("pitching")     # 411 fastball trials x 81 POI metrics
meta = obp.load_metadata("hitting")
hp = obp.load_hp()
obp.download(media=True)            # fetch the release archives via scripts/download_data.sh

Runnable, commented scripts live in examples/:

  • 01_explore_poi.py — load POI + metadata, plot pitch speed vs. elbow varus moment
  • 02_read_c3d.py — open a C3D with ezc3d, plot a marker trajectory
  • 03_join_fullsig.py — join full-signal tables on session_pitch + time
  • 04_hp_assessment.py — plot a countermovement-jump distribution

Data dictionaries & datasheet

  • Data dictionaries — machine-readable column references generated from the actual CSV headers: <module>/data/data_dictionary.csv and the aggregated data_dictionary.json. Regenerate with scripts/build_data_dictionary.py.
  • DatasheetDATASHEET.md documents motivation, composition (with real counts), collection, and distribution, following the Datasheets for Datasets framework.

Citing

If you use OBP, please cite it — see CITATION.cff (GitHub's "Cite this repository" button reads this file).

License

OBP is dual-licensed:

  • Code — MIT License. See LICENSE-CODE.md.
  • Data + biomechanics documentation — Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). See LICENSE-DATA.md and the OBP site under "Usage Terms." (license.txt is retained as a pointer.)

The data license is non-commercial, and it carries one additional specific exclusion beyond the standard CC BY-NC-SA terms:

While the license is clear that this data cannot be used for commercial purposes (which includes but is not limited to for-profit organizations, corporations, and sole proprietorships with the intent to profit now or in the future), there is also one additional specific exclusion where this data cannot be used in any form without a specific written commercial (paid) license: Any employee or contractor employed by, associated with, or a significant shareholder of a professional sports organization or financial analysis firm is forbidden to use The OpenBiomechanics Project data for any use whatsoever.

See LICENSE-DATA.md for the full terms.

IRB information

Western IRB provided ethical approval for all data collection procedures (Western IRB # WB-DLR-115).

Updates

Update 2024-07-30

High Performance module added! Find it in the high_performance folder.

Update 2023-11-02

OBP Computer Vision (OBP-CV) added! Examples can be found in the computer_vision folder and the README and data can be found at the following Google Sheet link:

OBP-CV README, Shot List, and More Information

Validated provisional OBP-CV calibration

Cross-validated provisional camera intrinsics, held-out pair transforms, an eight-camera OptiTrack pose graph, timing checks, and full methodology are available in computer_vision/calibration/. These values are published for reproducibility and continued validation; they are not yet a final lab-frame calibration. The next stage is the documented cube, CS-200, epipolar-overlay, and undistortion-grid workflow.

About

The open source initiative for anonymized, elite-level athletic motion capture data. Run by Driveline Baseball.

Topics

Resources

Contributing

Security policy

Stars

319 stars

Watchers

23 watching

Forks

Releases

Packages

Used by

Contributors

Languages