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 window of the new instance.

-
Go to the Export tab and click on the
Add Custom Export Optionsbutton.
-
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.pyNote
The script requires Python 3.7+ and
paho-mqttwhich can be installed by runningpip install paho-mqtt -
Start the
My Instances/Crowding Detectioninstance. You should see the number of objects in the console. Each line represents a frame in the input source.