opencv-python
opencv-python copied to clipboard
cv2.imwrite() issue
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