> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/import-and-post-processing/body-and-hand-pose-detection-analysis-video-based-motion-capture.md).

# Body and Hand Pose Detection Analysis (Video Based Motion Capture)

Run Body & Hand Pose post-processing on respondent and scene videos to get RTMO or MediaPipe landmark data, a skeleton overlay in Replay and exports.

Motion Capture post-processing locates the person in a video and returns the position of their body and hand landmarks, such as wrists, shoulders, hips and finger joints. Use it to quantify physical movement after data collection. The result is a skeleton overlay in Replay and position data you can export.

## Requirements

* The Body and Hand Pose module on your iMotions license.
* The Pose Detection deep learning model. iMotions downloads and installs it the first time you run the post-processing.
* A recording that contains a video that can be processed. Post-processing runs on the camera recordings set up in [Global Settings](https://help.imotions.com/lab/sensor-setup/camera-setup-audio-and-video-settings.md) — the Respondent Camera, the Scene Camera and the Environment Camera — and on respondent and scene videos imported after data collection, such as the scene video from [eye tracking glasses](https://help.imotions.com/lab/import-and-post-processing/importing-eye-tracking-glasses-files-into-imotions.md). Screen recordings or regular stimuli cannot be processed.

Post-processing runs after data collection, not in real time.

One person is analyzed per video. When several people are visible, iMotions processes the one with the largest body box and you cannot select a different one. Hands work the same way: the largest left hand box and the largest right hand box are processed.

## Body and hand detection models

For body pose data you can choose between two models:

* [RTMO](https://arxiv.org/abs/2312.07526) (default): iMotions uses the RTMO-s COCO model. It handles partial obstruction of the body and its output shows less jitter. RTMO is part of the [MMPose project](https://github.com/open-mmlab/mmpose/tree/main/projects/rtmo).
* [MediaPipe](https://ai.google.dev/edge/mediapipe/solutions/vision/pose_landmarker): iMotions uses the [Heavy](https://storage.googleapis.com/mediapipe-assets/Model%20Card%20BlazePose%20GHUM%203D.pdf) model together with the [BlazePose model](https://arxiv.org/pdf/2006.10204). It also returns data for the hands and feet, adds a z coordinate with its origin at the hip, and can return position data in meters as well as pixels. Several publications are available for MediaPipe.

For hand pose data there is one model, [MediaPipe](https://ai.google.dev/edge/mediapipe/solutions/vision/hand_landmarker). [Hand tracking](https://storage.googleapis.com/mediapipe-assets/Model%20Card%20Hand%20Tracking%20\(Lite_Full\)%20with%20Fairness%20Oct%202021.pdf) identifies the palm and the joints of the fingers and the thumb.

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-1b5162ede4c53c31a281b34c266ad1acb3854445%2Fb0a7383b3e_image-N6HK2PXA.webp?alt=media" alt=""><figcaption><p>Result of pose detection with RTMO (upper) vs. MediaPipe (lower)</p></figcaption></figure>

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-dd571a2954354e4a27cc7b04503870d9a088cdd6%2F0093a9ca60_image-ZDQABSIX.webp?alt=media" alt=""><figcaption><p>Result of hand detection with MediaPipe</p></figcaption></figure>

## Running body and hand pose post-processing

1. Right-click the study that contains the videos you want to analyze.
2. Select **Post Processing**, then **Body & Hand Pose**.
3. Select the respondents and stimuli to process.
4. Click **Process**. The first time you use the feature, and after a feature update, iMotions prompts you to install the Body and Hand Pose processing package.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7fb84017e82c40122432f32a3044376415c47023%2Fe4cc314970_image-76QBGSEH.webp?alt=media)

## Body and hand pose data and visualizations

When post-processing has completed, a skeleton overlay of the body and hand model is shown on the video in [Replay](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/respondent-replay.md). Right-click the video to turn the landmark visualization off and on.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-9ed56823a2146d9df9bfd69a281993fb36c049ff%2F5559016fb6_image-DU36R8T9.webp?alt=media)

The signals become available after signal processing. The following data can be exported through the [SensorData export](https://help.imotions.com/lab/exports/export-sensor-data.md):

* Position, width and height of the body and hand box, with a confidence score.
* X, Y and Z coordinates of each landmark in screen pixels. For RTMO the Z value is always 0.
* Indicators of feature presence and feature visibility.
* X, Y and Z coordinates of each landmark in world coordinates (meters). MediaPipe only.

Landmarks are numbered according to each model's specification. Coordinates in pixels range from 0 to the width and height of the video.

| Data                   | Coordinates | Origin                       | Unit                                           |
| ---------------------- | ----------- | ---------------------------- | ---------------------------------------------- |
| RTMO, Body Screen      | X, Y        | Top left corner of the video | Pixels                                         |
| MediaPipe, Body Screen | X, Y        | Top left corner of the video | Pixels                                         |
| MediaPipe, Body Screen | Z           | Mid hip                      | Pseudo pixels, lower values towards the camera |
| MediaPipe, Body World  | X, Y, Z     | Mid hip                      | Meters                                         |
| MediaPipe, Hand Screen | X, Y        | Top left corner of the video | Pixels                                         |
| MediaPipe, Hand Screen | Z           | Wrist                        | Pseudo pixels, lower values towards the camera |
| MediaPipe, Hand World  | X, Y, Z     | Geometric center of the hand | Meters                                         |

The geometric center of the hand is an auxiliary keypoint, averaged between the first knuckles of the index, middle, ring and pinky fingers.

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7aca1bec9e87e9e6b9e0d250184b9e7dfc40b3e4%2Fe590ed8822_image-IFIZV6VY.webp?alt=media" alt=""><figcaption><p>Topology of RTMO’s body model</p></figcaption></figure>

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f32536c387432878e0c4aacb42fd3a2676be0f5c%2Fe3d8dedcb8_image-1770889615628.webp?alt=media" alt=""><figcaption><p>Topology of MediaPipe’s body model</p></figcaption></figure>

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-1563cbe03cff9c751210c6c04d6c51320acdf365%2F7dc1529f66_image-Z5QGFQUX.webp?alt=media" alt=""><figcaption><p>Topology of MediaPipe’s hand model</p></figcaption></figure>

The [Body tracking kinematics R notebook](https://help.imotions.com/lab/analysis/biosensor-analysis/r-notebook-body-tracking-kinematics.md) uses the body pose data to derive velocity and joint angles, and can graph the landmark positions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/import-and-post-processing/body-and-hand-pose-detection-analysis-video-based-motion-capture.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
