Body Pose Recognition
Body pose recognition
Recognise postures, exercises and full-body movements from a webcam, using body tracking that runs in your browser.
Try it in StudioOn this page
What is a Body pose project?
A Body pose project teaches a model to recognise what a person's body is doing in front of a camera. You stand in view of your webcam, Studio tracks the body and records the positions of its joints, and the model learns which pattern belongs to which pose or movement. For example:
- postures such as standing, sitting, arms raised or T-pose,
- yoga and stretching poses,
- exercises such as squat, jumping jack or lunge, and counting them,
- safety checks, such as bending with a straight back or reaching overhead.
In Studio it is a Motion: Gesture Recognition project with the Camera input source and Body pose selected under What will you track?
How body tracking works
Studio does not learn from the camera picture itself. Instead, a body tracking model finds one person in each video frame and marks 33 body landmarks: points on the face, shoulders, elbows, wrists, hands, hips, knees, ankles and feet.
- 1Camera frameYour webcam, in the browser
- 2Body trackingFinds one person
- 333 body landmarksPosition, depth and visibility
- 4Landmarks blockCentres and scales the body
- 5Your modelPicks the pose
While the camera is on, you see the landmarks drawn over the video as a thin white skeleton, with a dashed outline that shows where to stand. When tracking is weak, the skeleton fades.
Each landmark also gets a visibility score: how sure the tracker is that the joint is in view. Before the model sees the landmarks, the Landmarks processing block centres the body on the hips, scales it to the length of the torso, and ignores joints the camera can't see. That is why it does not matter where you stand in the picture, or how tall you are, as long as the important joints are visible.
Full body or upper body
On the capture page, the Tracking card sets what must be in view:
| Framing | Needs in view | Use it for |
|---|---|---|
| Full body | Both shoulders and both hips | Squats, lunges, standing and sitting, most exercises |
| Upper body | Both shoulders | Arm movements and posture at a desk, when the camera is close |
The same card offers two tracking models: Lite (faster) and Full (more accurate). Choose Full if your computer keeps up; choose Lite if tracking is slow. Live classification later uses the same model your takes were recorded with.
Held poses and movements
| A held pose | A movement | |
|---|---|---|
| What it is | A position you hold still | Something the body does over time |
| Examples | T-pose, tree pose, sitting | squat, jumping jack, wave both arms |
| Capture intent when recording | Hold pose (3 s takes by default) | Movement (5 s takes by default) |
| Impulse choice | A held pose (Dense learning block) | A movement (Conv1D learning block) |
| Extra label | An other label for positions you don't want recognised | An idle label for standing still |
What the data looks like
Each recording is called a take: a table with one row every 33 ms (30 rows per second), and four columns per landmark:
| timestamp | pose_00_x | pose_00_y | pose_00_z | pose_00_v | … | pose_32_v |
|---|---|---|---|---|---|---|
| 0 | 0.498 | 0.201 | -0.312 | 0.99 | … | 0.41 |
| 33.33 | 0.497 | 0.203 | -0.309 | 0.99 | … | 0.44 |
xandyare positions in the camera picture, from 0 (left or top) to 1 (right or bottom).zis an estimate of depth. A single camera measures depth poorly, so Studio leaves it out unless you turn on Use depth (z).vis the visibility score, from 0 to 1.
Good poses to start with
- Stand 2 to 3 m from the camera, so your whole body fits in the picture.
- Pick poses that look clearly different. Arms up and arms down are easy; two similar yoga poses need more takes.
- Start with 3 to 5 labels, and record at least 10 takes per label. Studio needs at least 3 takes per label to train, validate and test.
- Ask a few different people, wearing different clothes, and record in a couple of places.
- Keep one person in view. Studio tracks one body at a time.
Technical details
- Tracking uses the pose landmark model from Google's MediaPipe, running in the browser on the GPU when it can and on the CPU otherwise. The status chip on the capture page shows its version.
- Each frame gives 33 landmarks × (x, y, z, visibility) = 132 channels.
- Takes are trimmed, short gaps of up to 3 frames are filled in, and the take is resampled to 30 Hz before it is saved.
- A deployed model takes a window of prepared landmarks as input, not camera frames. See Body pose workflow.