A desktop application that wraps the Pose2Sim markerless motion capture pipeline in a visual, step-by-step interface. Built for researchers who want to process multi-camera video into 3D motion data without editing config files by hand.
You record a person with 2-4 cameras, then this app walks you through every processing step:
Setup -> Calibration -> 2D Pose -> Synchronization -> Triangulation -> Filtering -> Visualization
| Step | What happens |
|---|---|
| Setup | Create or open a project folder, set camera count |
| Calibration | Compute camera lens parameters (intrinsic) and camera positions (extrinsic) |
| 2D Pose Estimation | Detect body keypoints in each camera's video |
| Synchronization | Align the timelines across cameras |
| Triangulation | Combine 2D detections from all cameras into 3D coordinates |
| Filtering | Smooth the 3D trajectories |
| Visualization | View the 3D skeleton, export .trc / .c3d for biomechanics software |
The final output is a .trc file you can open in OpenSim or Mokka.
Before you start, make sure these are installed on your computer:
Anaconda is a tool that manages Python and its packages so they don't conflict with other software on your computer.
- Download: https://www.anaconda.com/download
- Run the installer. Accept all default options.
- When it finishes, you should be able to open a program called "Terminal" (macOS/Linux) or "Anaconda Prompt" (Windows).
How to check if Anaconda is already installed: Open Terminal (or Anaconda Prompt) and type:
conda --versionIf it prints something like
conda 24.x.x, you're good. If it says "command not found", install Anaconda first.
Git is a tool for downloading and updating code.
- macOS: Open Terminal and type
git --version. If prompted, click "Install" to get the Xcode command line tools. - Windows: Download from https://git-scm.com/download/win. Use all default options.
- Linux:
sudo apt install git(Ubuntu/Debian) orsudo dnf install git(Fedora)
How to check if Git is already installed:
git --versionIf it prints something like
git version 2.x.x, you're good.
Open Terminal (macOS/Linux) or Anaconda Prompt (Windows). Then copy-paste each command below, pressing Enter after each one.
git clone https://github.com/Juno31/pose2sim-gui.gitThis creates a folder called pose2sim-gui on your computer.
cd pose2sim-guiThis installs Python and all required packages into an isolated environment called markerless:
conda create -n markerless python=3.10 -yWait until it finishes (about 1 minute).
conda activate markerlessYour terminal prompt should now show (markerless) at the beginning of the line.
Important: You must run
conda activate markerlessevery time you open a new terminal window before running the app.
pip install pose2sim pywebview rtmlib onnxruntime opencv-contrib-python tomlWait until it finishes (may take 3-5 minutes depending on your internet speed).
python -c "import Pose2Sim; import webview; print('OK')"If it prints OK, the installation is complete.
Every time you want to use the app:
conda activate markerlesscd pose2sim-guiTip: If you don't remember where you downloaded it, you can find it by typing:
- macOS/Linux:
find ~ -name "pose2sim-gui" -type d 2>/dev/null- Windows:
dir /s /b "%USERPROFILE%\pose2sim-gui"
python main_web.pyA window will open with the GUI. If nothing happens for a few seconds, wait — the first launch may take a moment to load.
To stop the app, close the window or press Ctrl+C in the terminal.
By default, pose estimation runs on CPU. If you have an NVIDIA GPU, you can make it 5-10x faster.
Skip this section if you don't have an NVIDIA GPU, or if you're on a Mac (Macs use a different GPU system).
nvidia-smiIf this prints a table with your GPU info and CUDA Version: 12.x, continue below. If it says "command not found", you either don't have an NVIDIA GPU or the drivers aren't installed.
conda activate markerless
pip uninstall onnxruntime -y
pip install onnxruntime-gpu
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124python -c "import onnxruntime as ort; print(ort.get_available_providers())"If the output includes CUDAExecutionProvider, GPU acceleration is active.
See DATA_ACQUISITION_GUIDE.md for detailed recording instructions.
Each project needs this folder structure:
my_project/
├── calibration/
│ ├── intrinsics/
│ │ ├── int_cam01_img/
│ │ │ └── (checkerboard video from camera 1)
│ │ ├── int_cam02_img/
│ │ │ └── (checkerboard video from camera 2)
│ │ └── ...
│ └── extrinsics/
│ ├── ext_cam01_img/
│ │ └── (scene video from camera 1)
│ ├── ext_cam02_img/
│ │ └── (scene video from camera 2)
│ └── ...
└── videos/
├── cam01.mp4 (trial video from camera 1)
├── cam02.mp4 (trial video from camera 2)
└── ...
Quick checklist:
- All cameras must use the same frame rate (30 fps recommended)
- All cameras must use the same resolution
- Videos must be in landscape orientation (not portrait)
- File format:
.mp4(H.264 or H.265)
- Click "New Project" to create a new project, or "Open Project" to load an existing one.
- For a new project: enter a name, choose a folder, select camera count (2-4), and pick pose estimator.
- The app creates the required folder structure for you.
Intrinsic calibration (camera lens parameters):
- Place a checkerboard pattern in front of each camera and record a short video (15-30 seconds).
- Put each video in the corresponding
int_camXX_img/folder. - Set the checkerboard size (columns, rows, square size in mm).
- Click "Run Intrinsics Only" and wait for it to finish.
Extrinsic calibration (camera positions):
- Place reference markers at known 3D positions in your scene.
- Record a short video from each camera showing the markers.
- Put each video in the corresponding
ext_camXX_img/folder. - Click "Click Extrinsic Points" — you'll see each camera's view.
- Click on each reference point in order (zoom with scroll, pan with Alt+drag).
- After all cameras, click "Compute Calibration".
- Check the reprojection error — below 2 px is good.
Each sub-step has its own Save and Run buttons:
- 2D Pose Estimation: Detects body keypoints in each video. A live preview shows the skeleton overlay. Takes 1-10 minutes depending on video length and GPU.
- Synchronization: Aligns camera timelines. Usually takes a few seconds.
- Triangulation: Combines 2D poses into 3D. Check that reprojection errors are reasonable.
- Filtering: Smooths the trajectories. Default Butterworth filter works well for most cases.
- Select a
.trcfile to view the 3D skeleton animation. - Use the playback controls to scrub through frames.
- Orbit, zoom, and pan the 3D view with your mouse.
You forgot to activate the environment. Run conda activate markerless first.
- Make sure you completed both intrinsic and extrinsic calibration.
- Check that the person is visible in at least 2 cameras throughout the recording.
- Try increasing
reproj_error_threshold_triangulation(e.g., from 15 to 30).
Your Config.toml has mixed integer/float types. Make sure all numbers in coordinate arrays are floats (use 0.0 instead of 0).
- Make sure you're running
python main_web.py(notmain.py). - Try:
pip install pywebview[qt]if the default backend doesn't work.
- Check GPU setup (see GPU section above).
- Reduce video resolution to 1080p.
- Increase
det_frequency(e.g., from 1 to 4) to run detection less often.
Phone videos recorded in portrait mode need to be re-encoded:
ffmpeg -i input.mp4 -c:v libx264 -crf 18 -c:a copy output.mp4cd pose2sim-gui
git pull
pip install --upgrade pose2sim pywebview rtmlibconda deactivate
conda env remove -n markerlessThen delete the pose2sim-gui folder.
pose2sim-gui/
├── main_web.py # Entry point — run this to start the app
├── app/
│ ├── api.py # Backend API (Python ↔ GUI communication)
│ ├── project.py # Project configuration and state management
│ └── toml_bridge.py # Config.toml read/write helpers
├── web/
│ ├── index.html # GUI layout
│ ├── style.css # Visual styling
│ └── app.js # GUI logic (navigation, forms, 3D viewer)
├── environment.yml # Conda environment definition
├── requirements.txt # pip dependencies
├── DATA_ACQUISITION_GUIDE.md # Recording instructions for the data team
└── README.md # This file
- Pose2Sim by David Pagnon — the core markerless pipeline
- RTMLib — real-time pose estimation models
- Three.js — 3D visualization in the browser
- PyWebView — native desktop window for web UIs
MIT License — see LICENSE for details.