Horje
show image in python Code Example
show image in python
from PIL import Image

#read the image
im = Image.open("sample-image.png")

#show image
im.show()
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()




Python

Related
python discord bot join voice channel Code Example python discord bot join voice channel Code Example
python split string by tab Code Example python split string by tab Code Example
discord.py making a bot join Code Example discord.py making a bot join Code Example
index to datetime pandas Code Example index to datetime pandas Code Example
how to get size of folder python Code Example how to get size of folder python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7