save an image in python as grayscale cv2 code example Example: save an image in python as grayscale cv2 cv2.imwrite('data/dst/lena_opencv_red.jpg', im)