The second level of analysis is what we call metrics.
It happens once every 5 seconds and provides information about short-term behavior on the pipeline.
It is configured in the analytics editor.
Metrics are published to MQTT broker under "pipelines/pipelineX/metric/detection.{metric name}" topic.
We collect 7 types of metrics:
- objects_on_scene.max5s - The maximum number of all objects on the scene in the last 5 seconds. Published for every pipeline
- objects_in_roi.max5s - The maximum number of objects in ROI in the last 5 seconds. Published for every ROI
- line_crossing.sum5s - Number of objects that crossed the line in the last 5 seconds. Published for every line
- scene_occupation.5s - How long is a certain class of object on the scene. Published for every class
- scene_loitering.5s - Longest time a specific object is loitering on the scene. Published for every class
- roi_occupation.5s - How long is a certain class of object in ROI. Published for every class and ROI
- roi_loitering.5s - Longest time a specific object is loitering in ROI. Published for every class and ROI
Metrics message is in the form of a json document.
It contains basic information like the time, stream, pipeline, type, etc. and specific metrics information, which depends on the selected metric.
Example data