University Bike Fits is our own video fit-analysis software. You pedal your bike on a Wahoo Rollr while we film two one-minute passes, one from the side and one from the front. The software tracks your joints through every pedal stroke, measures 12 angles and distances, compares them with target ranges, and writes a report with plain-language next steps. It supports the fitter's judgment; it does not replace it.
A web app on the shop laptop records or uploads the video and shows the results. The analysis runs in a Python worker as six steps:
Every angle is the angle at the middle joint of three body points (for example hip–knee–ankle for the knee), measured per stroke on the corrected, leveled video. Every target range, suggestion and model choice lives in one settings file, so the fit protocol can be tuned without changing code.
| Measurement | View | How it's taken | Starting target |
|---|---|---|---|
| Knee extension | Side | Hip–knee–ankle angle, largest, near the bottom of the stroke | 140–150° |
| Knee flexion | Side | Hip–knee–ankle angle, smallest, near the top of the stroke | 68–75°* |
| Hip angle (closed) | Side | Shoulder–hip–knee angle, smallest, near the top | 45–55°* |
| Torso angle | Side | Hip-to-shoulder line vs. horizontal, average | By riding style |
| Shoulder angle | Side | Hip–shoulder–elbow angle, average | By riding style |
| Elbow angle | Side | Shoulder–elbow–wrist angle, average | 150–165°* |
| Ankle range | Side | Knee–ankle–toe angle, max minus min | 20–30°* |
| Knee over pedal | Side | Knee ahead of or behind the foot at 3 o'clock, mm | Shown only |
| Cadence | Side | Pedal strokes per minute | Shown only |
| Knee side-to-side travel | Front | Each kneecap's sideways movement, mm, per leg | 0–20 mm* |
| Knee travel difference | Front | Left travel minus right travel, mm | Shown only |
| Pelvic rock | Front | Hip line tilt vs. horizontal, max minus min | 0–5°* |
* Starting values that an experienced fitter is still reviewing. Knee extension of 140–150° is the same as 30–40° of knee bend at the bottom of the stroke.
Torso and shoulder targets depend on riding style:
| Riding style | Torso angle | Shoulder angle |
|---|---|---|
| Road, endurance | 40–50° | 80–90° |
| Road, performance | 30–40° | 85–95° |
| Gravel | 40–55° | 80–90° |
| Mountain | 45–60° | 70–85° |
Fits are free while we test V3, then $99. Plan on about 1.5 hours: measurements and a flexibility check, a warm-up, two filmed passes, then adjustments and a re-test.
Your bike, your cycling shoes and pedals, and fitted clothing that contrasts with a plain background. Shorts are best so we can see your knees. We may put a few small neon-green stickers on your joints; they peel off.
No. The software measures; the fitter decides. It gives the fitter joint angles averaged over many pedal strokes, which are hard to judge by eye, and the fitter combines them with your measurements, flexibility, comfort and goals.
Not yet. It gives a direction and a step size (for example, raise the saddle 3 mm), then we re-test and compare. Millimeter-exact part recommendations are planned for a later version.
No. A fit can make riding more comfortable, but it is not medical advice. If something hurts, see a doctor or physical therapist.
The math is checked on computer-generated riders with known angles, where it recovers every angle to within half a degree. Its readings on real riders are still being checked against careful hand measurements (the goal is within 3° of a manual knee-angle measurement, and within 2° between repeat recordings). That testing is why fits are free right now. Video angles are taken while you pedal, so they sit a few degrees off a static measurement taken standing still; we never mix the two.
When the software can't see a joint clearly enough, it says so instead of guessing. Common causes are fewer than 15 clean strokes, dim light, loose clothing, or no stickers. Pelvic rock in particular needs stickers on the front of both hip bones.
Everything runs on one laptop in the shop. Your videos and report are not sent to a cloud service, and you take home the PDF.
Road (endurance or performance), gravel and mountain bikes, on our Wahoo Rollr. The riding style only changes the torso and shoulder targets.
The code is private for now. You can read the full design, including every measurement and target, in the build plan (PDF).
For University Bikes staff. The software is in a private repository; ask Paul for access.
university-bike-fits repository..env.example to .env and set AUTH_SECRET (run openssl rand -base64 32), SHOP_USERNAME and SHOP_PASSWORD. Do not run it with the defaults.make up (the same as docker compose up --build -d). The first build downloads the pose model and takes a while.http://localhost:3000 and log in. The home page shows whether the analyzer is running.make down. To watch logs: make logs.| Side pass | Front pass | |
|---|---|---|
| Camera position | Square to the bike, facing the drive (right) side | On the bike's centerline, in front of the Rollr |
| Distance | 3–4 m from the bike | 2.5–3 m from the bars |
| Lens height | Rider's hip height | Knee height with the cranks level |
| Framing | Whole bike and rider, about 10% margin on every edge | Both knees and feet fully in frame |
| Lens | Main 1x lens, never ultra-wide | Same |
| Video | 1080p or higher, 60 fps minimum (120 preferred) | Same |
| Exposure | Focus and exposure locked; shutter 1/500 s or faster | Same |
Optional stickers: 2 cm matte, round, neon green. Side: hip (greater trochanter), outer knee, outer ankle bone, outside of the shoe at the little toe, shoulder, elbow, wrist. Front: center of each kneecap and the front of each ankle (and the front of both hip bones if you want a reliable pelvic rock reading).
Target ranges, riding-style profiles, suggestion wording and the pose model are all in config/fit.yaml. Edit it, then run make check-config to validate it and make upto restart. A bad value stops the analyzer at startup with a message naming the key, so a typo can't silently change a fit.
Ready to book? Text (650) 656-6807. Bike fits are Saturdays and Sundays, 10–3.