Case Study · Computer Vision

FormCheck — a coach that watches your form

A webcam coach that reads your body pose, measures joint angles on every frame and compares them with limits set for each exercise. It counts reps, separates clean reps from sloppy ones and shows a cue the moment a joint leaves its safe range.

Project
Pose-based form coach
Scope
Rule engine · Rep counter · Admin
Stack
React · Canvas · MediaPipe Pose
Status
Interactive prototype
FormCheck showing a side-view skeleton in a squat with red joints, live joint angles and the cue Chest up, your torso is leaning too far forward
Try It Live

Break the form on purpose

The rule engine, running right here.

Pick an exercise, set the form quality to Always faulty and watch the skeleton turn red, the angle bars cross their limit lines and a plain-language cue appear. The skeleton is simulated, driven by the same angle maths and thresholds the camera version uses. Open Admin panel to change a limit and see the demo react.

formcheck · interactive demo
The Brief

Most people train without seeing their own form

A mirror shows you a body. It does not tell you that your knees are drifting past your toes.

People exercising alone at home rarely get feedback on how they move, only on how many reps they did. FormCheck is designed to close that gap using nothing but a phone or laptop camera. It tracks 33 body landmarks, turns three of them into a joint angle, and checks that angle against a limit for the exercise.

Because the limits are numbers an admin can edit, they can be tuned for a beginner, an athlete or a physiotherapy programme without changing any code. Pose detection is designed to run in the browser, so video never has to leave the device.

If a joint leaves its safe range, say so in one sentence.
What We Built

What it does

01

Live joint angles

Knee, elbow, torso and body-line angles are measured on every frame and drawn on the skeleton, with the landmark numbers shown.

02

Rep counting

One angle starts a rep and a higher one finishes it, so a wobble at the bottom of a squat is never counted twice.

03

Clean-rep score

A rep with no rule broken counts as clean. The score is clean reps over total reps, and planks are scored in seconds of good form.

04

Plain-language cues

“Chest up. Your torso is leaning too far forward.” Each rule carries its own message, written by the admin.

05

Editable form rules

Limits, counting angles and cues for squat, push-up and plank are edited in the admin panel and apply to the demo straight away.

06

Session log and export

Sessions are saved with reps, clean reps and depth, charted in the admin, and exported as a hand-off brief for the camera build.

The Product

Inside FormCheck

A dark camera panel on a calm page: the skeleton is the only loud thing.

Select any screen to view it full size.

Design Thinking

Decisions that mattered

Smooth before judging

Pose landmarks jitter between frames, so angles are smoothed before any rule runs. Otherwise a steady squat would flicker red.

Skip, never guess

A side-on camera hides some joints. Landmarks with low visibility are skipped instead of invented, so a cue is only shown when it can be trusted.

Every limit is a setting

A limit that suits one body fails on another. Thresholds and cue text live in the admin panel, not in code.

Privacy by design

Pose detection is designed to run on the device, so no video is uploaded and nothing has to be stored to give feedback.

33
Body landmarks
per frame
3
Exercises with
form rules
5
Steps from camera
frame to cue
0
Outside requests
made by the demo
Where It Stands

What is real, and what is simulated

The rule engine and admin work. The camera build is the next step.

In the demo: the angle maths, the rep counter with separate down and up angles, the clean-rep score, form rules with editable limits and cues, a session log with a chart, and an export of the whole setup. The skeleton moves by a motion model, not by a camera, and the numbers in the session log are sample data.

Not yet: live pose detection from a real camera, tests on real bodies and devices, and measured accuracy or frame rate. The “33 landmarks” figure describes the pose model it is designed for. It is not a benchmark of this prototype.

How It Works

From camera frame to cue

Five steps, and the last three are already working in the demo.

The first two steps need a camera and a pose model, which the camera build adds. Everything after the landmarks is plain maths and rules, which is why it can be tested and tuned without a camera at all.

From a frame to feedback
  1. 1Camera frame

    The browser streams video into a hidden element. Frames stay inside the tab.

  2. 2Pose landmarks

    A pose model returns 33 body landmarks per frame, each with a visibility score.

  3. 3Joint angles

    Three landmarks give one angle, such as hip, knee and ankle. A moving average removes jitter.

  4. 4Rule engine

    Each exercise has editable limits. Separate down and up angles stop a rep counting twice.

  5. 5Feedback

    Rep count, clean-rep score and a plain cue are drawn over the video within one frame.

Next

What we would add for a real product

Front-view rules

Knee cave and uneven shoulders need a camera facing the user, with its own set of landmarks and limits.

Spoken cues

Hands-free sets: short voice cues so nobody has to look at the screen mid-rep.

Per-user calibration

A few reference reps set limits to the person’s own range of movement.

On-device history

Session history stored on the phone, with an optional account if the user wants it synced.

More exercises

Lunge, hip hinge and overhead press, each as a motion model plus a set of rules.

Real-device testing

Frame rate, battery and accuracy measured on mid-range phones before any claim is made.

Under the Hood

Design & stack

Pose
MediaPipe PoseWebAssemblyWebGLThe camera build’s pose model, which runs in the browser. It is not part of the simulator.
Rules
Joint anglesHysteresisThresholdsPlain maths and editable limits that are easy to test and explain.
Interface
React 18Canvas 2DCSSOne self-contained page, with no build step and no outside requests in this demo.
Storage
Browser storageJSON exportSettings and sessions stay on the device and can be exported as a hand-off brief.
Hosting
Static siteHTTPSThe camera build is a static site. Browsers only allow camera access over HTTPS.

Want something like this for your business?

Tell us a little about your idea. We will tell you honestly what it would take, how long it would take and what it would cost.

  • Free discovery call
  • Reply within 24 hours
  • First working version in 72 hours

Need a camera or pose feature in your app?

Posture checks, rep counting, fitness and physiotherapy apps are a focused build. Tell us what the camera should notice and we’ll scope it.

Start a Conversation