Skip to content

Instantly share code, notes, and snippets.

@saurabhpal97
Created March 23, 2019 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabhpal97/f4edb026cec53b2953dff7f6f9531e80 to your computer and use it in GitHub Desktop.
Save saurabhpal97/f4edb026cec53b2953dff7f6f9531e80 to your computer and use it in GitHub Desktop.
#import the libraries
import numpy as np
import matplotlib.pyplot as plt
import cv2
%matplotlib inline
#reading the image
image = cv2.imread('index.png')
image = cv2.cvtColor(image,cv2.COLOR_BGR2RGB)
#plotting the image
plt.imshow(image)
#saving image
cv2.imwrite('test_write.jpg',image)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment