I want to resize the frame with smooth and soft downsampling with this algorithm (cv2.INTER_AREA) and I have tried it in python using that algorithm with Opencv.
And, We have explored other methods of Nvinfereserver. But we could not get the accurate result as “cv2.INTER_AREA” does produce.
It would be great if that “cv2.INTER_AREA” provision is there in Nvinferesever.
Kindly help us to achieve smooth downsampling.
as the opencv doc said " resampling using pixel area relation. It may be a preferred method for image decimation, as it gives moire’-free results. But when the image is zoomed, it is similar to the INTER_NEAREST method.",
why do you have to use this INTER_AREA? why not use nvidia NvBufSurfTransformInter_Nearest?
But we don’t want to zoom an image so we are not using NvBufSurfTransformInter_Nearest. We require to do downsampling with image smoothing like cv2.INTER_AREA does.
First image is the output of cv2.INTER_AREA with smooth edges.
Second image is the output of NvBufSurfTransformInter_Nearest with contrast edges.