I am trying to use the new Gst-nvdsanalytics plugin to gather line counting data and send it to azure IOT using the msg conv and broker.
I have my python script (a combination of deepstream-test3 and 4) working and can see the analytics lines and counts on the osd and data to going to azure IOT hub.
How do I access the analytics data to send it to azure? I am after the frame analytics information. From the plugin docs I have this: The analytics output (Frame level) is encapsulated in the NvDsAnalyticsFrameMeta structure and is added as user meta with meta_type set to NVDS_USER_FRAME_META_NVDSANALYTICS.The user meta is added to the frame_user_meta_list member of NvDsFrameMeta. Code below:
batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
l_frame = batch_meta.frame_meta_list
frame_meta = pyds.NvDsFrameMeta.cast(l_frame.data)
l_user = frame_meta.frame_user_meta_list
After that I am not sure, any help would be much appreciated :)