davidpagnon / Pose2Sim_Blender

Pose2Sim visualizer tool — Import cameras and OpenSim data in Blender
MIT License
20 stars 0 forks source link
3d-animation biomechanics blender-addon calibration kinematics mocap opensim pose2sim

Open Source? Yes! License DOI

Pose2Sim Blender

Pose2Sim_Blender is a Blender add-on for visualizing Pose2Sim results -- and more.

N.B.:

  • Faster .mot import
  • Fixed various issues

Pose2Sim is an open-source pipeline for obtaining research-grade 3D motion analysis from consumer-grade cameras (such as phones, webcams, GoPros, etc).

This add-on can be used to visualize:

Demo for other Pose2Sim tools

N.B.:\ OpenSim is an open-source software for research in biomechanics, widely used in motion capture (MoCap).\ Blender is an open-source software used for 3D modeling, animation, and rendering.


Contents

  1. Installation
    1. Quick install
    2. Full install
  2. Demonstration
    1. Camera tools
    2. OpenSim imports
    3. Other tools
  3. How to cite and how to contribute

https://github.com/davidpagnon/Pose2Sim_Blender/assets/54667644/a2cfb75d-a2d4-471a-b6f8-8f1ee999a619


Installation

Quick install

N.B.: Full install is required for importing .mot motion files.


Where to find Pose2Sim add-on


Full install

Only needed for importing .mot motion files.

Full installation requires admin rights on your computer. It is a little tricky, but the following steps should do it smoothly. If you encounter any issues, please submit an issue. Only Windows has been tested, but feel free to tell me how it goes on other platforms!

1. Prerequisites
2. Find your Blender Python version

  Open Blender, press Shift+F4, type the following lines:

  import sys
  sys.version
3. Install Pose2Sim_Blender libraries
4. Link your conda environment to Blender Python

  Open CMD as an administrator.\   Replace with your Blender version and with the location of your Pose2Sim_Blender environment:

  cd "C:\Program Files\Blender Foundation\Blender 4.0\4.0"
  mv python python_old
  mklink /j python <LOCATION_OF_POSE2SIM_BLENDER_ENV>
  mv /j python\DLLs python\DLLs_old
  mklink /j python\DLLs python_old\DLLs
  mklink /j python\bin python_old\bin

  Now, any package you install in your conda environment will immediately be available in Blender.

5. Install Pose2Sim_Blender add-on in Blender


Demonstration

Find example files in the Examples folder of your Pose2Sim_Blender.zip archive.

Camera tools

OpenSim imports

Other tools


How to cite and how to contribute

How to cite

If you use Pose2Sim_Blender, please cite Pagnon et al., 2022b.

 @Article{Pagnon_2022_JOSS, 
  AUTHOR = {Pagnon, David and Domalain, Mathieu and Reveret, Lionel}, 
  TITLE = {Pose2Sim: An open-source Python package for multiview markerless kinematics}, 
  JOURNAL = {Journal of Open Source Software}, 
  YEAR = {2022},
  DOI = {10.21105/joss.04362}, 
  URL = {https://joss.theoj.org/papers/10.21105/joss.04362}
 }

How to contribute

I would happily welcome any proposal for new features, code improvement, and more!\ If you want to contribute to Sports2D, please follow this guide on how to fork, modify and push code, and submit a pull request. I would appreciate it if you provided as much useful information as possible about how you modified the code, and a rationale for why you're making this pull request. Please also specify on which operating system, as well as which Python, Blender, OpenSim versions you have tested the code.

Here is a to-do list. Feel free to complete it: