📜  py绘制黑色正方形和白色圆圈的矩阵 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:20.347000             🧑  作者: Mango

代码示例3
>>> 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'))