Capture frames
Camera frames are sampled in-browser, downscaled to JPEG, and sent over HTTPS at roughly 1 fps.
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.
Device camera to Workers AI
Start the camera to stream sampled frames to Workers AI.
Camera access stays in your browser. Only compressed frames are sent to the API.The demo keeps the browser lightweight and lets Workers AI perform the expensive vision step on Cloudflare's network.
Camera frames are sampled in-browser, downscaled to JPEG, and sent over HTTPS at roughly 1 fps.
The Astro API route calls the Workers AI binding and runs Meta's DETR ResNet-50 object detector.
The browser scales model coordinates back to the video overlay and draws labels with confidence scores.