2026AICompleted
RealTag
Tag any object in a live camera feed and find it again later.

- Problem
- Detecting an object in one frame is easy. Recognising the same object later, from another angle, and keeping your own label on it is not.
- Action
- Built an Expo app with Vision Camera, Skia overlays and MMKV storage, and a FastAPI server that runs YOLO11 for detection, SAM2 for masks and DINOv2 for embeddings, matched by similarity.
- Result
- Runs end to end: tag an object once and the app finds it again in later frames.
- Detect, segment and embed
- Tap-to-segment and automatic masks
- Finds a tagged object again by embedding
The Problem
Detecting an object in one camera frame is a solved problem. Recognising the same physical object again, across frames, angles and lighting, and keeping your own name and notes on it, is harder. It also had to feel like a live camera app rather than a research notebook.
What I Built
RealTag pairs an Expo app using Vision Camera with a FastAPI server that runs on a computer on the same Wi-Fi:
- Detect. YOLO11 finds objects in JPEG snapshots taken from the live feed every few seconds.
- Segment. SAM2 draws masks automatically, or at the point you tap.
- Tag. Give the selected object a name, notes and a colour. DINOv2 turns its crop into an embedding.
- Find it again. Later frames are matched against saved embeddings by similarity, so the same object keeps its tag.
On the phone, IoU tracking keeps overlays steady between server calls, Skia draws them, and MMKV stores the tags.
- Full-screen camera with a continuous detection loop against the local server.
- Automatic and tap-to-segment masks from YOLO boxes and SAM2 point prompts.
- Your own tags, not a fixed product catalogue: you name what matters in your scene.
- Re-identification by DINOv2 embeddings.
- Steady overlays so boxes don't flicker between polls.
Key Challenges
Three models on a live feed. Detection, segmentation and embedding are chained, so the heavier SAM2 and DINOv2 stages run on cropped regions rather than full frames.
A server that keeps up. The FastAPI server has to stay responsive while a phone streams frames to it. Earlier on-device experiments led to this split between phone and server.
Results
Runs end to end: live detection and segmentation on frames from the phone, custom tags, and re-identification of tagged objects in later frames.
Stack Decisions
YOLO11, SAM2 and DINOv2 each handle one part: fast boxes, precise outlines and stable embeddings. No single model does all three well. FastAPI keeps PyTorch serving light on a local network, and Vision Camera with Skia keeps the app a full-screen camera.
Building something in this space?
I ship mobile, web and AI products end to end, from the first screen to payments and store releases.
Get in touch