Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

show image in python

# Import required libraries
from matplotlib import pyplot as plt
from matplotlib import image as mpimg
 
plt.title('GradCAM Bee Image') # Adds title
plt.xlabel('X pixel scaling') # Adds X label
plt.ylabel('Y pixels scaling') # Adds y label
 
im = mpimg.imread('GradCAM_Bee.png') # Reads the image

plt.imshow(im) 
plt.show()
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #show #image #python
ADD COMMENT
Topic
Name
2+4 =