• Hardware Platform (Jetson / GPU) : Tesla P4
• DeepStream Version : 6.1
Hi, has anyone tried modifying deepstream_nvdsanalytics_test application to save the detected objects as images?
Please refer to the sample of saving the detected objects as images here: /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-image-meta-test
I tried modifying the nvdsanalytics_src_pad_buffer_probe in the deepstream-nvdsanalytics-app by adding the image saving code snippet from the deepstream-image-meta-test but I’m not able to run the application
In the deepstream-image-meta-test the images are encoded in the pgie_src_pad_buffer_probe and saved in the osd_sink_pad_buffer_probe. How do I implement this in the deepstream-nvdsanalytics-test-app?
There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks
They are similar. You can get the nvbufsurface in the probe function and get the paras from the for loop:
GstBuffer *buf = (GstBuffer *) info->data;
GstMapInfo inmap = GST_MAP_INFO_INIT;
if (!gst_buffer_map (buf, &inmap, GST_MAP_READ)) {
GST_ERROR ("input buffer mapinfo failed");
return GST_PAD_PROBE_DROP;
}
NvBufSurface *ip_surf = (NvBufSurface *) inmap.data;
for (l_frame = batch_meta->frame_meta_list; l_frame != NULL;
l_frame = l_frame->next) {
.......
}
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.