opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

cv2.imwrite() issue

Open viethoang261 opened this issue 1 year ago • 0 comments

I'm trying to use imwrite with change image quality and got an error here is my code: if not cv2.imwrite(save_path, result_image, [cv2.IMWRITE_JPEG_QUALITY,75]): print('imwrite error') and here is the error imwrite() takes 2 positional arguments but 3 were given

Anyone can help me to solve this? ps: the same environment but run in main and it runs normally

viethoang261 avatar Aug 05 '22 07:08 viethoang261