Draw a zone
Create a normalized rectangle on the video overlay. The region survives resize and reloads.
Draw a square directly on the camera feed, detect people with Workers AI, and log entry or exit events when detections overlap that area.
Virtual perimeter analytics
Start the camera, then draw a monitored square over the video.
Only person detections inside the zone create events.This view turns object detection boxes into zone occupancy analytics without adding any server-side state.
Create a normalized rectangle on the video overlay. The region survives resize and reloads.
DETR runs on sampled frames and returns person bounding boxes with confidence scores.
The browser logs entry, exit, and clear events when people cross the virtual perimeter.