from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
img=np.asarray(Image.open(r"C:\Users\GTone\Desktop\444.jpg")).astype(np.float32)
im = Image.fromarray(img.astype('uint8'))
在ipython中输入im,返回的是
<PIL.Image.Image image mode=RGB size=1065x800 at 0x1F2D3C3C4F0>
用的是spyder,之前是可以显示出image的,但是不知道为何现在就不行了
im.show()