Trying to Save full Frame in the deepstream Image meta example

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Hi Team,
I am using the Deep stream 6.0 sdk in ubuntu machine locally, I am following the example of deepstream -image-meta -test for saving the full frame, instead of obj_meta I am passing the frame_meta Like this NvDsUserMetaList *usrMetaList = frame_meta->frame_user_meta_list but its giving segmentation fault , So I tried with these lines of code in osd _sink_pad_buffer_probe as mentioned below
GstMapInfo inmap;

if (gst_buffer_map (buf, &inmap, GST_MAP_READ)) {
char fileNameString[FILE_NAME_SIZE];
const char *osd_string = “OSD”;
snprintf (fileNameString, FILE_NAME_SIZE, “%s_%d_%d.jpg”,
osd_string, frame_number, frame_meta->source_id);
FILE *file = fopen (fileNameString, “wb”);
if (inmap.data != NULL && inmap.size > 0){
g_print(“\n map.size %ld \n”,inmap.size);
fwrite (inmap.data, sizeof (guint8), inmap.size, file);
}
fclose (file);
gst_buffer_unmap (buf, &inmap);
}
I am getting the output as OSD image, but no data written on it its size is in kb, I am not sure whether it’s a full frame image or not Can anyone help me to resolve this issue and get full frame after inferencing.

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)

• DeepStream Version

• JetPack Version (valid for Jetson only)

• TensorRT Version

• NVIDIA GPU Driver Version (valid for GPU only)

• Issue Type( questions, new requirements, bugs)

• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Hardware: RTX1080TI
Deep stream Version :6.0
TensorRT Version:8.0.1

please refer to this topic 239727, it can save the whole frame.

Hi Fanzh Thank you, Now I’m getting the full frame but the size. is 64 bytes. Only not able to view the Image. Can you help me on this?

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

are you testing in 6.0 docker? could you simplify the code to reproduce this issue?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.