python show png
%pylab inline
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img = mpimg.imread('your_image.png')
imgplot = plt.imshow(img)
plt.show()
0
0
from PIL import Image
image = Image.open('image.jpg')
image.show()
Thank you!
0
0
Are there any code examples left?
New code examples in category Python