Hey, everyone! I am trying to display the numpy image via matplotlib.pyplot, but the code had just completed successfully and the image had not been displayed. Here is the code:
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
im = Image.open(path to my image)
pic = np.asarray(im)
plt.imshow(pic)
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
im = Image.open('test/lenna.png')
pic = np.asarray(im)
plt.imshow(pic)
plt.show()