Skip to content
Work index

ML / DL

Store Intelligence

Turns raw CCTV footage into structured behavioural events and live retail analytics — an RT-DETR + ByteTrack vision pipeline behind a containerised FastAPI service.

Store Intelligence
Computer VisionRT-DETRByteTrackFastAPI

01 / Problem

The problem

Retail stores record hours of CCTV that nobody watches. The footage holds real signal about dwell time, footfall, and queue formation, but none of it is queryable.

02 / Response

The solution

Built an end-to-end pipeline that ingests raw camera clips, detects and tracks people with RT-DETR and ByteTrack, emits structured behavioural events into Postgres, and serves them through a FastAPI analytics layer with a live terminal dashboard.

03 / Product

Key capabilities

01

RT-DETR detection with ByteTrack multi-object tracking

02

Structured behavioural event extraction

03

FastAPI + Pydantic v2 analytics service

04

Postgres event store

05

Live terminal monitoring dashboard

06

Full Docker Compose stack

04 / Outcome

Impact

Built for the Purplle engineering challenge in 48 hours
Raw footage to queryable events in a single pipeline
Five-command reproducible setup

05 / Reflection

What I learned

Tracking quality dominates downstream analytics — a small ID-switch rate in the tracker quietly corrupts every dwell-time metric computed on top of it.

Explore more work

Speak to me

Email or see my code