I found a very interesting picture:The size of this image is about 8MB although it’s blurring. Then I use below python code to try to resize it using different interpolation strategy:import cv2
img = cv2.imread("/Users/robin/Downloads/ou1.png")
for inter, name in [(cv2.INTER_AREA, "area"), (cv2.INTER_CUBIC, "cubic"), (cv2.INTER_LINEAR, "linear")]:
after = cv2.resize(img, (310, 310), inter)
cv2.imwrite(f"{name}.bmp", after)“area”“cubic”“linear”All these resized pictures looked terrible.Is this the general problem of Image Resizing? Let me try
...
继续阅读
(13)