Live object detection on Cloudflare Workers

See the world through Workers AI

Stream camera frames from this device to Cloudflare, run DETR object detection on Workers AI, and render bounding boxes back over the live video feed.

@cf/facebook/detr-resnet-50 $0.0000075 per inference
Try the live detection

Device camera to Workers AI

Live video object detection

Idle

Start the camera to stream sampled frames to Workers AI.

Camera access stays in your browser. Only compressed frames are sent to the API.
Round trip -
Inference -
Sample rate 1.0 fps
Frames sent 0
Labels seen 0
Payload -

Frame by frame, edge by edge

The demo keeps the browser lightweight and lets Workers AI perform the expensive vision step on Cloudflare's network.

Capture frames

Camera frames are sampled in-browser, downscaled to JPEG, and sent over HTTPS at roughly 1 fps.

Run DETR

The Astro API route calls the Workers AI binding and runs Meta's DETR ResNet-50 object detector.

Render detections

The browser scales model coordinates back to the video overlay and draws labels with confidence scores.