change OSD plugin to save the crops on the disk

Hi,
I want to do something like what you have done at “redaction_with_deepstream”

but instead of redaction I want to save crops on disk.
how can I modify the plugin? I can’t find the source code

thanks
vadim

Hi Vadimd

You can refer to sources/gst-plugins/gst-dsexample to modify the original buffer.

get_converted_mat()
NvBufSurfTransform()