With 5.1 I’m wondering if something similar is possible using nvdsanalytics? I have looked at deepstream-occupancy-analytics and deepstream-analytics-test but they would generate as many messages as there are objects detected and only append number of objects entering/exiting or items within roi.
the message generation called from msg2p_generate_multiple or msg2p_generate based on flag multiplePayloads in nvmsgconv plugin code sources/gst-plugins/gst-nvmsgconv/gstnvmsgconv.c and these two functions will call into generate_deepstream_message_minimal or generate_schema_message based on payload type is NVDS_PAYLOAD_DEEPSTREAM_MINIMAL or NVDS_PAYLOAD_DEEPSTREAM. you can comment code like generate_sensor_object, anything you do not want, if you use payload type NVDS_PAYLOAD_DEEPSTREAM, or does NVDS_PAYLOAD_DEEPSTREAM_MINIMAL meet your requirements, it’s using minimal DeepStream schema.
How can I access information that a particular object is within nvdsanalytics-defined roi and send the message only then?
And when defining multiple roi-RFn for one stream, would it be possible to know in which roi the object was detected?
You can refer app deepstream-nvdsanalytics-test, function about how to extract nvanalytics metadata