Exporting SecuRT data¶
How to Export object statistics through MQTT¶
This guide walks you through the process of setting up a SecuRT instance to export object statistics through MQTT, using Persons/Crowding Detection
as an example
-
Create a copy of the instance by saving it in the user instances:
-
Access the Setup windows of the new instance.
-
Go to the Export tab and click on the
Add Custom Export Options
button. -
Configure the output to use the right data type and format
-
Click "Ok" and save the changes.
-
Download and run the following Python script mqtt_listen_global_object_stats.py
python mqtt_listen_global_object_stats.py
Note
The script requires Python 3.7+ and
paho-mqtt
which can be installed by runningpip install paho-mqtt
-
Start the
My Instances/Crowding Detection
instance. You should be seeing the number of objects in the console. Each line represents a frame in the input source.