How to view/save the image resized by the nvinfer element?

This requires modifying the code of nvinfer(/opt/nvidia/deepstream/deepstream/sources/gst-plugins/gst-nvinfer).

You can refer this FAQ.