write image in opencv python code example
Example 1: how to save image opencv
cv2.imwrite('data/dst/lena_opencv_red.jpg', im)
Example 2: cv2 write image python
# Filename
filename = 'savedImage.jpg'
# Using cv2.imwrite() method
# Saving the image
cv2.imwrite(filename, img)