Python opencv 图像缩放
img = cv2.imread(os.path.join(filepath, name))dst = cv2.resize(img, (img.shape[1]//4, img.shape[0]//4))cv2.imwrite(os.path.join(aimpath, "image" + str(num).zfill(6)) + ".jpg", dst)
·
img = cv2.imread(os.path.join(filepath, name))
dst = cv2.resize(img, (img.shape[1]//4, img.shape[0]//4))
cv2.imwrite(os.path.join(aimpath, "image" + str(num).zfill(6)) + ".jpg", dst)
更多推荐
所有评论(0)