Deepstream-app (DS4.0) - saving frame with/without bounding boxes - Xavier

Hi
I’m trying to save both the frame when initially captured by the (USB) camera, with a timestamp, as well as it with the superimposed bounding boxes…both within the deepstream-app.

Should I use the code in

https://devtalk.nvidia.com/default/topic/1060956/deepstream-sdk/access-frame-pointer-in-deepstream-app/post/5400321/#5400321

and if so, which source file should it reside in?

Many thanks

dsexample plugin should be the better way to access frame data, you can refer to source code of it,
sources/gst-plugins/gst-dsexample/,
here is topics about this,
https://devtalk.nvidia.com/default/topic/1061205/deepstream-sdk/rtsp-camera-access-frame-issue/post/5377678/#5377678
https://devtalk.nvidia.com/default/topic/1061422/deepstream-sdk/how-to-crop-the-image-and-save/post/5375174/#5375174