There is a newer version of the record available.

Published February 4, 2026 | Version v0.8.27

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

Description

Pixel coordinates are converted to meters by multiplying pixel distances by the height_m/height_px ratio:

However, height_px only measures segment lengths in 2D. When the person does not perfectly lie in the sagittal plane, the segments look smaller on screen. Tests on sprinting trials show that multiplying this computed height by 1.063 fixes the issue in most cases, and delivers more accurate distance/velocity results.

Other changes:

  • Corrected pixel to meters scaling factor.
  • Deleted the Colab notebook (difficult to maintain and not as convenient as the huggingface demo)
  • Cleaned up pose estimation functions, now loaded from Pose2Sim
  • Readme.md: slight change on table of contents structure
  • Corrected Config.toml typo for deepsort
  • Silenced some warnings

What's Changed

  • Correct curly quotes and missing quote in deepsort_params in Config.toml by @hunminkim98 in https://github.com/davidpagnon/Sports2D/pull/34

Full Changelog: https://github.com/davidpagnon/Sports2D/compare/v0.8.26...v0.8.27

Notes

If you use this software, please cite our article in the Journal of Open Source Software.

Files

davidpagnon/Sports2D-v0.8.27.zip

Files (9.0 MB)

Name Size Download all
md5:d21e7de190e4c35aebd9b9fc74899b2e
9.0 MB Preview Download

Additional details

Related works