Dwell Counter Node
Tracks how long detected objects have been present in a specified region in the video
Overview
The Dwell Counter node keeps track of the number and how long each detected, tracked object has been present in the specified region in the video, can highlight objects, and adds the presence metadata to the frame metadata. This node makes it easy to build common use cases such as Overtime parking enforcement, Loitering alerts, etc.
This node has been deprecated in favor ofOccupancy Monitor
This node requires a AI Model Node and a Track Objects Node before it in order to function properly.
Inputs & Outputs
- Inputs : 1, Media Format : Raw Video
- Outputs : 1, Media Format: Raw Video
- Output Metadata : Presence Information
Properties
Property | Value |
---|---|
| Comma separated list of Detected Object labels to track, as specified in Model Labels ex. Accepted formats:
|
| Number of seconds the object must be present to flag them on the video stream Ex. |
| Boolean. If true, ROI info will be drawn on video Ex. |
| Boolean. If true, Object info (presence duration, as well as highlight when it crosses presence threshold) will be drawn on video Ex. |
| Semicolon separated list of areas in the video within which the Presence Detector tracks these objects. If none is specified, the Presence Detector tracks objects within the entire frame. Format: Ex: |
| Comma separated list of labels for each ROI in the Format: Ex: |
| Boolean. If true, the following analytics will be stored in disk and restored when the pipeline restarts: been present in the specifi Ex. |
Metadata
Metadata Property | Description |
---|---|
| Describes the ROIs monitored by this node, and their properties.
|
Example
"nodes": {
"annotate_presence1": {
"type": "annotate_presence",
"rois": {
"<roi_label>": {
"coords": [[<point1_x>, <point1_y>],
[<point2_x>, <point2_y>],
[<point3_x>, <point3_y>]],
"total_objects": <int>,
"objects_entered_delta": <int>,
"objects_exited_delta": <int>,
"objects_above_max_time_threshold_count": <int>,
"objects_above_max_time_threshold_delta": <int>,
"current_objects_count": <int>,
"current_objects": {
"<object_tracking_id>": {
"first_seen": <seconds in ROI>,
"time_present": <seconds in ROI>
}
}
}
}
}
}
Format
Key | Type | Description |
---|---|---|
| Array of dictionaries | Contains information about this specific ROI |
| Dictionary | Contains the bounding box coordinates that represent this ROI |
| Integer | Number of objects seen in this ROI since the start of the pipeline |
| Integer | Number of objects that entered the ROI between last frame and this frame |
| Integer | Number of objects that left the ROI between last frame and this frame |
| Integer | Number of objects inside the ROI above the specified temporal threshold |
| Integer | Number of new objects that exceeded the threshold between the last frame and this frame |
| Integer | Number of objects inside the ROI currently |
| Array of dictionaries | Information about the objects currently in the ROI
|
Updated 30 days ago