π Detection Zones
Limit detection area with polygonal zones for precise monitoring and fewer false positives.
πΊοΈ Polygon Zones
Polygon Zones allow you to limit detection to arbitrary shapes. Events are only detected inside drawn zones.
Zone Management
Control zones through interface buttons:
- DRAW ZONE β start drawing new zone
- CLOSE ZONE β finish and save zone
- REMOVE LAST β delete last zone
- RESET β clear all zones
How it works
Zone creation algorithm:
- Click DRAW ZONE
- Click points on the image
- Click CLOSE ZONE to close polygon
- Zone saves automatically to config
Zones are saved in camera configuration. After creation, zones can be edited
or deleted without restarting the system.
πΌ Workplace Zones
Workplace Zones are special zones for monitoring employee presence. Each zone maintains its own incident counter.
Differences from Polygon Zones
Workplace Zones have additional logic:
- Absence alert β notification after N seconds absent
- Presence confirm β confirm return after M seconds
- Require initial presence β require initial appearance
- Per-zone incidents β separate incidents for each zone
Example Usage
Typical office scenario:
- Zone around workstation
- Alert after 30 sec absence
- Return confirmation after 5 sec
- Telegram notifications for absence/return
Configuration Example:
{
"workplace_enabled": true,
"workplace_absence_seconds": 30,
"workplace_confirm_seconds": 5,
"workplace_zones": [
[[50, 50], [300, 50], [300, 400], [50, 400]]
]
}
βοΈ Configuration
Polygon Zones Parameters
- zones β list of polygons, each is array of points [x, y]
- classes β object classes to detect in zone
- confidence β confidence threshold (default 0.45)
Workplace Zones Parameters
- workplace_enabled β enable workplace monitoring
- workplace_absence_seconds β absence time before alert (default 30)
- workplace_confirm_seconds β time to confirm return (default 5)
- workplace_zones β list of workplace zones