Created
March 23, 2019 08:40
-
-
Save saurabhpal97/f4edb026cec53b2953dff7f6f9531e80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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