How To Save Full Frame when object is detected along with annoted KITTI data

• Hardware Platform (Jetson / GPU) : GPU
• DeepStream Version : 6.0
• NVIDIA GPU Driver Version (valid for GPU only) : 495.29.05
• Issue Type( questions, new requirements, bugs) : New Requirement
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description) :

I am using deepstream-app for object detection on a video stream. I want to save the frames where a relevant object is detected in image form, along with the coordinates of the detected object in KITTI format.

I have already used gie-kitti-output-dir to get the object labels in the desired format. I want help in figuring out how to save the image of the frame corresponding to each of the records generated by gie-kitti-output-dir with a unique association - that is, I should be able to identify which frame a particular KITTI format record is corresponding to.

As per the posts I have read on the forum, I understand that I should be using gst-dsexample but I am not sure how to begin modifying it.

Please guide me about how I could achieve the desired result in a step-by-step manner.

Thanks

1 Like

Currently there is no such function in deepstream-app app. If you need to save the frame, you must change the code of deepstream-app. It is open source. The frame data can be available with NvBufSurface. You can get the frame data in write_kitti_output() function in /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-app/deepstream_app.c, which is the same function who save the bbox to gie-kitti-output-dir.

I am not able to understand how I can access the frame data using NvBufSurface in the write_kitti_output() function.

Could you provide me a sample code that shows how I can correctly load or declare and initialize it with the correct frame data? I can’t find it utilized anywhere in deepstream-app.c

Please refer to deepstream-image-meta-test sample which shows how to encode jpeg file from NvBufSurface.

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