Exporting Data
How to Export the output image using RTSP¶
This guide walks you through the process of setting up a Crowd Estimation instance to export the output buffer (with points and people counter) as a RTSP stream. We'll be using video playlist 720p
as the 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 save the instance
5 - Restart the instance (stop followed by start)
6 - Confirm that the output is being streamed to rtsp://127.0.0.1:8554/demo
. Here's how to do it using VLC
How to Export people count using MQTT¶
This guide walks you through the process of setting up a Crowd Estimation instance to export the total number of people in the image using MQTT.
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
python mqtt_listen_people_count.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 people in the console. Each line represents a frame in the input source.