from PIL import Image
#read the image
im = Image.open("sample-image.png")
#show image
im.show()
# importing Image class from PIL package
from PIL import Image
# creating a object
im = Image.open(r"C:UsersSystem-PcDesktophome.png")
im.show()
from IPython import display
display.Image("path_to_image/image_name.jpg")
# 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()
# show image
fig, ax=plt.subplots()
ax.imshow(img)
# select point
yroi = plt.ginput(0,0)