Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 27, 2021 11:53
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 amankharwal/4975128702007997c059e799077e0922 to your computer and use it in GitHub Desktop.
Save amankharwal/4975128702007997c059e799077e0922 to your computer and use it in GitHub Desktop.
# Reading an image using Matplotlib
from matplotlib import image
import matplotlib.pyplot as plt
data = image.imread("aman.jpg")
print(data.dtype)
print(data.shape)
plt.imshow(data)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment