Computer vision for sports: what a motion analysis app can measure

By Awais Chaudhry, 21 November 2026

Quick answer: from ordinary phone video, a computer vision motion analysis app can reliably measure body joint positions, joint angles, range of motion, timing and tempo, repetition counts, left-right symmetry and the path of a bar, club, racket or ball. With a known reference distance in the frame it can also estimate speeds and distances in real units. What it cannot do well from one camera is give lab-grade 3D angles, forces or muscle activity; those need multiple cameras, force plates or wearable sensors.

That answer hides a lot of detail, and the detail decides whether your app is useful or misleading. This guide explains what each measurement is, how it is calculated, how trustworthy it is from a single phone, and what you need to plan for if you are building a sports or fitness app around it. We build sports and motion analysis software, including a padel ball-tracking app and a motion analysis app for a client in the UK, so this is written from the engineering side.

How does a motion analysis app see the body?

Almost every modern motion analysis app starts with pose estimation: a neural network that looks at each video frame and outputs the position of body landmarks such as shoulders, elbows, wrists, hips, knees and ankles. Widely used models include Google's MediaPipe Pose, which outputs 33 landmarks, and models trained on the COCO keypoint format, which uses 17. Some models also output an estimated depth for each point, giving a rough 3D skeleton from a single camera.

Everything else in the app is built on top of those points:

  1. Detect the athlete in the frame, and pick the right person if there are several.
  2. Estimate the pose in every frame.
  3. Smooth the points over time, because raw landmarks jitter from frame to frame.
  4. Calculate metrics such as angles, speeds and timings from the smoothed points.
  5. Find events, such as foot contact, the bottom of a squat or the moment of ball impact, so metrics are reported at the moments that matter.

Objects like balls, bars and rackets are handled by a separate object detection and tracking model. Our article on how computer vision ball tracking works covers that side in depth.

What can a motion analysis app measure?

MeasurementHow it is calculatedReliability from one phone camera
Joint angles (knee, hip, elbow, trunk lean)Angle between three landmarks in each frameGood when the movement is side-on to the camera; weaker when the joint rotates toward or away from it
Range of motionSmallest and largest angle across a movementGood for comparing sessions with the same camera set-up
Repetition countPeaks and troughs in a joint angle or position over timeVery good for clear, repeated movements
Tempo and phase timingTime between detected events, limited by frame rateGood at 60 fps or higher; coarse at 30 fps for fast actions
Left-right symmetrySame metric compared on each side of the bodyUseful as a trend; side facing away from the camera is less accurate
Bar, club or racket pathObject tracking across framesGood with a clear view and a reference size in the frame
Speed and distance in metresPixel movement converted using a known distance or court linesReasonable estimates with calibration; not usable without it
Running cadence, contact timeFoot events detected from ankle and foot landmarksCadence is good; contact time needs high frame rates
Forces, power, muscle activityCannot be seen directly; only estimated through modelsTreat as estimates, or add force plates or wearables

Joint angles and range of motion

This is the core of most coaching, physiotherapy and strength apps: knee angle at the bottom of a squat, hip extension in a sprint, elbow angle at the top of a throw. The calculation is simple geometry on three points. The hard part is the camera. A 2D angle is only a true angle when the movement happens in a plane facing the camera. Film a squat from the side and knee flexion is measured well; film it from 45 degrees and the number changes even though the athlete did not. Good apps tell the user exactly where to place the phone and check the angle of view before recording.

Timing, tempo and events

Many of the most useful insights are about timing rather than position: how long the eccentric phase of a lift takes, whether the hips start rotating before the shoulders in a golf swing, how cadence changes as a runner tires. These depend on frame rate. At 30 frames per second each frame is about 33 milliseconds apart, which is too coarse for a tennis serve or a sprint start. Most recent phones can record at 60 or 120 fps, and many at 240 fps in slow motion, so the app should request the highest rate the device supports for fast sports.

Speed, distance and trajectories

A camera measures pixels, not metres. To turn movement into real units the app needs a reference: a court line of known length, a marker of known size, a barbell plate, or the athlete's height entered by the user. Sports with standard markings, such as tennis, padel or football, are easier because the lines give a fixed geometry the app can map to. Without calibration, speed numbers look precise but are not.

Symmetry and asymmetry

Comparing the left and right sides is valuable in rehabilitation and injury prevention. With one camera, though, the far side of the body is partly hidden and its landmarks are less accurate. Treat single-camera symmetry figures as a trend to watch across sessions rather than an absolute number, or use two phones, one on each side.

2D vs 3D motion analysis: which do you need?

  • 2D from one camera is enough for most coaching and fitness apps: rep counting, technique feedback, simple angles in a known plane, progress over time. It is the cheapest to build and the easiest for users.
  • Estimated 3D from one camera uses models that predict depth. It helps with rotation and twisting movements, but depth is the least accurate part of the output. It is good for visual feedback and comparisons, less so for exact numbers.
  • True 3D from two or more synchronised cameras triangulates each point and gives much better angles in any direction. It needs calibration and careful set-up, so it suits clubs, clinics and training centres rather than casual users.
  • Marker-based lab systems remain the reference for research and clinical gait analysis. Markerless apps are improving quickly, but if you need lab-grade numbers, validate your app against one before making claims.

What affects accuracy in real use?

Models that look impressive on test data often struggle in a real gym, court or field. The usual causes are:

  • Camera position: wrong angle, too far away, or the athlete leaving the frame.
  • Lighting and motion blur: indoor halls and evening sessions blur fast limbs, and blurred limbs give poor landmarks.
  • Occlusion: equipment, other players or the athlete's own body hiding a joint.
  • Loose clothing: baggy kit hides where the knee or hip actually is.
  • Unusual poses: upside-down gymnastics, lying positions or extreme flexibility that general models saw little of in training.
  • Multiple people: the app must keep following the right athlete when others walk through.

The fixes are partly technical, such as smoothing filters, sport-specific fine-tuning of the pose model and quality checks that reject bad frames, and partly about the user experience: clear set-up guides, an on-screen framing check and honest warnings when a recording is not good enough to measure.

On the phone or in the cloud?

Pose models can now run in real time on most recent phones using Core ML on iOS and TensorFlow Lite or similar on Android. On-device processing gives instant feedback, works offline in a sports hall with poor signal, and keeps video private. Cloud processing allows bigger, more accurate models, heavier 3D reconstruction and analysis of long recordings, at the cost of upload time and server bills. Many apps do both: live feedback on the phone, detailed reports processed on a server afterwards. Our mobile app development team handles the on-device side and our machine learning engineers the models and server pipeline.

Privacy, consent and youth sport

Motion analysis apps record people's bodies, often in clubs and schools where many athletes are children. Plan for this from the start: get clear consent, let users delete recordings, store only what you need (processed landmarks are much less sensitive than raw video), and follow the data protection law where your users are, such as UK GDPR or the EU GDPR. If the app gives injury or rehabilitation advice, take advice on whether medical device rules apply in your market.

What does it cost to build a sports motion analysis app?

The biggest cost drivers are the number of sports and movements you support, whether you need 2D or 3D, real-time or after-the-session analysis, how much sport-specific training data has to be collected and labelled, and how polished the coaching feedback and dashboards are. A focused first version for one movement type is a very different budget from a multi-sport platform. Our guide to machine learning development cost breaks down the model side, and the app cost calculator gives a range for the app around it.

How we help

We build sports analytics and motion analysis apps end to end: computer vision models for pose and object tracking, mobile apps for iOS and Android, server pipelines and coach dashboards. We start with a short proof of concept on your own videos, so you see what can be measured reliably before committing to a full build.

Questions coaches and founders ask

Can a phone camera measure joint angles accurately?

Yes, for movements filmed side-on with the phone held still and the whole body in the frame. Accuracy drops when the joint rotates toward or away from the camera, with motion blur, or when part of the body is hidden. For precise 3D angles you need two or more synchronised cameras.

What frame rate does a sports motion analysis app need?

30 frames per second is enough for slow movements such as squats, rehabilitation exercises and posture. Fast actions like sprinting, throwing, golf or racket swings need 60 fps at least, and 120 to 240 fps for precise timing of impacts and foot contacts.

Can a motion analysis app work without wearable sensors?

Yes. Markerless pose estimation from video measures positions, angles, timing and repetitions with no sensors on the athlete. Wearables or force plates are only needed for things a camera cannot see, such as ground reaction forces, heart rate or muscle activity.

Plan your motion analysis app

Tell us the sport, the movements you want to measure and who will use the app. We reply within one business day with what can be measured reliably and a milestone estimate. Start a project, or hire us on Freelancer, where we have a 4.9 average from 356 reviews.