davidpagnon/Sports2D

Compute 2D human pose and angles from a video or a webcam.

What it solves

Sports2D provides a way to perform 2D motion capture and biomechanical analysis from standard video sources (phones, webcams, GoPros) without the need for expensive marker-based systems. It solves the problem of calculating joint trajectories and angles for sports analysis, clinical gait assessment, and biomechanics research using only a single camera.

How it works

The tool automatically computes 2D keypoint trajectories and joint/segment angles from a video or live webcam feed. It can track multiple people simultaneously and integrates with OpenSim for full skeletal analysis and inverse kinematics. To convert pixel data to real-world meters, it uses a reference height for the participant and can estimate camera horizon angles and floor levels. For higher accuracy, it can leverage the Stanford LSTM model for marker augmentation.

Who it’s for

  • Sports Analysts: For field-based 2D motion capture.
  • Clinicians: For gait analysis in a medical office setting.
  • Researchers: For biomechanics studies involving multiple participants.

Highlights

  • Hardware Agnostic: Works with any camera, including smartphones and webcams.
  • Multi-Person Support: Capable of tracking and analyzing multiple people at once.
  • OpenSim Integration: Provides full kinematics, scaled models, and inverse kinematics for biomechanically accurate results.
  • Flexible Output: Generates annotated videos, joint angle files (.mot), keypoint trajectories (.trc, .c3d), and calibration files.
  • Visualization Tools: Compatible with OpenSim GUI and a dedicated Blender add-on for detailed investigation.

Related

  • Project
  • Project
  • Project
  • Project