convert ros image to opencv python and save images in file code example Example: how to save image opencv cv2.imwrite('data/dst/lena_opencv_red.jpg', im)