Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@saurabhpal97
Created March 23, 2019 09:30
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/b9dfd3f7ef706f7b32fc57d40e98156f to your computer and use it in GitHub Desktop.
Save saurabhpal97/b9dfd3f7ef706f7b32fc57d40e98156f to your computer and use it in GitHub Desktop.
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