Fork me on GitHub

【numpy】生成图片格式的数据

image = np.random.randint(0,255,size=(224,224,3)).astype(np.uint8)
import imageio
imageio.imwrite('test.png',image)

test.png是这样的:

 

posted @ 2020-04-14 15:28  西西嘛呦  阅读(757)  评论(0编辑  收藏  举报