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

test.png是这样的:

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

 

相关文章:

  • 2021-11-19
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2022-02-27
  • 2021-10-31
猜你喜欢
  • 2021-11-16
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
相关资源
相似解决方案