Created
March 23, 2019 09:30
-
-
Save saurabhpal97/b9dfd3f7ef706f7b32fc57d40e98156f 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 cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
#reading the image | |
image = cv2.imread('index.jpg') | |
#converting image to size (100,100,3) | |
smaller_image = cv2.resize(image,(100,100),inerpolation='linear') | |
#plot the resized image | |
plt.imshow(smaller_image) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment