关于从cv2.imwrite保存图像占用空间变大的问题 cv2.imwrite() cv2.imwrite() 对于cv2.imwrite()保存图像后占用空间变大,修改下面对应数值,默认是95,0-100代表不同压缩率。 cv2.imwrite(paths, out, [int( cv2.IMWRITE_JPEG_QUALITY), 70])