0
点赞
收藏
分享

微信扫一扫

Python之从numpy.array保存图片

Brose 2022-07-18 阅读 164

1.用scipy

import scipy

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

 

2.用PIL

from PIL import Image

im = Image.fromarray(img)

im.save("test.jpg")

黄世宇/Shiyu Huang's Personal Page:​​https://huangshiyu13.github.io/​​



举报

相关推荐

0 条评论