← Back to Projects

Bhangra Coach

A dance coach that compares a clip to a reference and names a cue I would fix on the next run.

2026 · In progress

  • Next.js
  • FastAPI
  • MediaPipe
  • Supabase
  • Computer Vision

Key outcomes

  • Pose landmarks on user and reference clips
  • Temporal alignment before scoring movement diffs
  • Upload / process / review loop with stored clip metadata

Project overview

Bhangra Coach, photo 1

Compare a user clip to a reference with pose landmarks, temporal alignment, and a review UI.

System architecture

Bhangra Coach, photo 2

Clips → landmarks → alignment → coaching cues → UI.

Upload UI
Capture and review clips in Next.js.
Pose service
FastAPI + MediaPipe landmark extraction.
Comparison
Temporal alignment and delta metrics.
Storage
Supabase metadata and outputs.

Engineering decisions

DecisionAlternativeWhy
Explicit temporal alignmentFrame index compareAlign first, then score.

Results and future work

End-to-end coach loop. Clips can be uploaded, processed, and reviewed with pose-based feedback.

Still open. Feedback quality still iterating; not a finished pedagogy product.

  • More robust multi-angle models.
Full engineering log

Motivation

Why I started this

What pulled me in, and what I wanted to get better at.

Why I built it

As a dancer, 'your elbow is 12 degrees off' is not useful feedback. I wanted cues I would actually fix.

What interested me

People dance at different tempos. Align first, then compare. Otherwise the numbers are noise.

What I wanted to learn

Upload, MediaPipe, alignment, feedback UI, Supabase storage. Still iterating on cue quality.

System Overview

How the system fits together

Compare a user clip to a reference with pose landmarks, temporal alignment, and a review UI.

01

Upload UI

Capture and review clips in Next.js.

02

Pose service

FastAPI + MediaPipe landmark extraction.

03

Comparison

Temporal alignment and delta metrics.

04

Storage

Supabase metadata and outputs.

Data flow

Clips → landmarks → alignment → coaching cues → UI.

Engineering Breakdown

Broken down by discipline

Each block is the requirement, how that part works, what I checked, and what is still open.

01Vision Pipeline

Vision Pipeline

Goal

Turn two performances into comparable motion signals.

Design

MediaPipe landmarks for user and reference; alignment layer before metric diffs; interpret deltas as cues.

Challenges

  • Tempo differences break naive frame-wise compare.
  • Camera angle and lighting shift landmark quality.

Iterations

  • Raw pose overlay
  • Alignment layer
  • Cue wording pass

Final implementation

Working upload/process/feedback loop under active iteration.

Feedback demo

A clip next to the reference, with the cue on the page.

The service

Railway page for the bhangra-coach service. The deployment listed here is active.

The database

Supabase dashboard for the project database. The screen shows a healthy database, not a table of scores.

Key Design Decisions

Design decisions

DecisionAlternativeWhy
Explicit temporal alignmentFrame index compareAlign first, then score.
Notes on these decisions

Explicit temporal alignment

How do you compare dancers at different speeds?

Index compare is easy and wrong; alignment adds complexity and truth.

Align first, then score.

Results & Validation

What held up

What worked in the end, what I can show for it, and where it's still limited.

End-to-end coach loop

Live app + demo video

Clips can be uploaded, processed, and reviewed with pose-based feedback.

Limitations

  • Feedback quality still iterating; not a finished pedagogy product.
Bench notes

The longer design notes, the timeline, and the revisions. The sections above are the system and what I measured.

Evolution

How it got here

The steps I can put in order from the notes. A clip opens from its still.

  1. v1

    Pose extract

    Landmarks working.

  2. v2

    Full stack

    Upload + storage + feedback UI.

  3. Now

    Cue quality

    Robustness across angles/lighting.

Reflection

Looking back

What surprised me, what I'd redo, and questions I'm still chewing on.

What surprised me

  • UX wording mattered as much as landmark error.

What I would redesign

  • Stronger camera-calibration guidance.

Future improvements

  • More robust multi-angle models.

Questions that emerged

  • What numeric delta becomes a useful dance cue?

Notes

  • Pose deltas are measurements; coaching is interpretation.