我尝试使用以下代码来调整目录中的图像大小,但最终出现此错误 错误:( - 1515)ssize.width> 0&& ssize.height>功能cv :: resize
中的0import cv2
import numpy as numpy
for idx in range(85):
im = cv2.imread('IDRiD_'+str(idx)+'.jpg')
im1 = cv2.resize(im, (0,0), fx=0.2, fy=0.2)
cv2.imwrite('resized_image\IDRID'+str(idx)+'.jpg', im1)
print('IDRiD_'+str(idx)+'.jpg is resized')