📅  最后修改于: 2022-03-11 14:45:20.347000             🧑  作者: Mango
>>> from scipy import misc
>>> import imageio
>>> face = misc.face()
>>> imageio.imsave('face.png', face) # First we need to create the PNG file
>>> face = imageio.imread('face.png')
>>> type(face)
>>> face.shape, face.dtype
((768, 1024, 3), dtype('uint8'))