Case study · Jun – Jul 2025
AI Thief Detection System
Browser-native real-time human detection — no server, no cloud API, no data leaving the device
Problem
Traditional surveillance requires backend compute, cloud vision APIs, and continuous video uploads — adding cost, latency, and privacy risk. Running inference in the browser eliminates all of that. The model runs at the edge — on the user's own device — making the system fast, free to run, and fully private.
Approach
A Next.js application that runs a pre-trained COCO-SSD object detection model in the browser using TensorFlow.js. The webcam stream is captured via WebRTC and fed to the model frame-by-frame in real-time — detecting human presence with bounding box overlays, no server round-trip required.
TensorFlow.js loads and executes the COCO-SSD model inside the browser's JavaScript engine. WebRTC captures the webcam feed frame-by-frame. A Canvas overlay renders bounding boxes around detected humans in real-time. Next.js serves the app as a static bundle — no backend process running anywhere.
Result
Real-time human detection running at the browser edge — no backend, no cloud API, no data transmission. Fully functional offline.
Architecture
- Webcam
- WebRTC Stream
- Canvas Frame Capture
- TensorFlow.js COCO-SSD
- Bounding Box Render
- Human Alert
Stack
- Next.js
- TensorFlow.js
- WebRTC
- TypeScript
- COCO-SSD
- Canvas API