Saving a Numpy array as an image (instructions)

后端 未结 3 898
囚心锁ツ
囚心锁ツ 2021-02-05 14:16

I found my answer in a previous post: Saving a Numpy array as an image. The only problem being, there isn\'t much instruction on using the PyPNG module.

There are only

3条回答
  •  遥遥无期
    2021-02-05 14:49

    import matplotlib.pyplot as plt
    import numpy as np
    plt.imshow(np.random.random(100, 100))
    plt.savefig('')
    

提交回复
热议问题