cascade original image and resized image before inference

I am trying to create a cascade image that will contain the original image and number of resized images (that are derive from the original image) , so I can inference the new image ones and get scores.
my problem is to resize the image , I have added gst-dsexample plugin before the infer block , and edit “gst_dsexample_start” function , but no meter what I do , the output is not changing.

how to resize image? how can I cascade resized images before inference?


Maybe you can utilize nvvidconv plugin to resize the frames in your usecase.