Exporting 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 person_area_crowding
as an example
1 - Start the instance
2 - Go to the solution settings on the bottom left, expand Exporting Options
, and add a new output
3 - Configure the output to use the right data type and format
4 - Save the changes and restart the instance
5 - 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
6 - You should be seeing the number of objects in the console. Each line represents a frame in the input source.