Detection Count Zones
Overview
Detection Count Zones node counts detected objects inside configurable polygon zones and returns per-zone totals and filtered object lists.
Use this node after any detection node (for example Object Detection or General Object Detection) to build zone-based analytics — for example counting people in a restricted area, measuring occupancy per lane, or checking whether a specific product type is present in each region.
Input
Input Detections
array requiredArray of detection objects from an upstream node. Each object must include at least a bbox field ([x, y, width, height]). The node determines which detections fall inside each zone based on bounding box position.
Input Image
imageOptional image frame used as the background for zone overlay drawing. When not connected, the overlay output is empty.
Zone Labels
arrayList of zone definitions. Each entry defines a polygon zone with:
label— display name for the zone.points— array of[x, y]vertices defining the polygon boundary in image pixel coordinates.color(optional) — hex color string for the zone overlay.
Zone Configurations
arrayPer-zone behavior settings that control how objects are counted and filtered within each zone. Each entry corresponds to the zone at the same index in Zone Labels.
The label filter field supports the following comparison modes to match against detected object labels:
EQUALSNOT_EQUALSCONTAINSNOT_CONTAINSSTARTS_WITHENDS_WITHMATCHES_REGEX
Output
Overlay Image
imageOutput frame with zone polygons and per-zone counts drawn as overlays.
Zone Count Results
arrayArray of per-zone result objects. Each object contains the zone label, the total count of matching objects inside the zone, and the list of matching detection objects.