OpenCV TypeError: bad argument type for built-in operation
I'm using OpenCV v4.0.1 and want to save an image into a file, but I get the following error:
cv2.imwrite(new_image, dest + '/images/' + file_name + '.png')
Traceback (most recent call last):
File "script.py", line 45, in <module>
cv2.imwrite(new_image, dest + '/images/' + file_name + '.png')
TypeError: bad argument type for built-in operation