Computer vision for virtual perimeters

Monitor people entering a custom zone

Draw a square directly on the camera feed, detect people with Workers AI, and log entry or exit events when detections overlap that area.

DETR + browser geometry in-memory event log
Open the zone monitor

Virtual perimeter analytics

Draw a zone, log entries

Idle

Start the camera, then draw a monitored square over the video.

Only person detections inside the zone create events.
In zone now0
People detected0
Total events0
Zone coverage-
Longest dwell-
Latency-

From detection to events

This view turns object detection boxes into zone occupancy analytics without adding any server-side state.

Draw a zone

Create a normalized rectangle on the video overlay. The region survives resize and reloads.

Detect people

DETR runs on sampled frames and returns person bounding boxes with confidence scores.

Log transitions

The browser logs entry, exit, and clear events when people cross the virtual perimeter.