Aggregate Metadata
Aggregates Metadata that matches specified wildcard patterns and adds resulting value for subsequent nodes to use.
Overview
This node Aggregates Metadata that matches specified wildcard patterns and adds resulting value for subsequent nodes to use. It is useful when you want to build triggers that act across various metadata properties (such as when an object enters any ROIs vs a specific ROI in the Occupancy Monitor Node).
Inputs & Outputs
- Inputs : 1, Media Format : Raw Video
- Outputs : 1, Media Format: Raw Video
- Output Metadata : Aggregated Value
Properties
Property | Value |
---|---|
metadata_patterns | Comma separated Metadata pattern(s) to aggregate; replace desired aggregation level with * . Ex: nodes.annotate_motion1.rois.*.motion |
aggregation_mode | Aggregate all metadata that matches the pattern using this mode. Options: any : Outputs True if Any metadata property is true (Logical OR) all : Outputs True if All metadata properties are true (Logical AND) sum : Outputs Sum of metadata properties Any and All convert any numbers to boolean (non-zero counts as True), and Sum converts any booleans to numbers (True counts as 1). |
Metadata
Metadata Property | Description |
---|---|
nodes.<node_id> | Format : as defined in the table below. <node_id> for this node is of the form aggregate_metadataX (ex. aggregate_metadata1 ) |
Example
"nodes": {
"aggregate_metadata1": {
"type": "aggregate_metadata1",
"aggregate_value": 1
}
}
Format
Key | Type | Description |
---|---|---|
aggregate_value | Integer or Boolean | Aggregated Metadata value |
Updated 9 months ago