Python之从numpy.array保存图片

1.用scipy

import scipy

scipy.misc.imsave('test.jpg', img)

 

2.用PIL

from PIL import Image

im = Image.fromarray(img)

im.save("test.jpg")

posted @ 2018-01-05 10:33  Shiyu_Huang  阅读(13114)  评论(0)    收藏  举报