Brose

关注

Python之从numpy.array保存图片

Brose

关注

阅读 164

2022-07-18

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/​​



相关推荐

岛上码农

学习python笔记:10,requests,enumerate,numpy.array

岛上码农 36 0 0

芝婵

pandas.array() 与 numpy.array() 函数的区别

芝婵 31 0 0

辰鑫chenxin

机器学习笔记之list, numpy.array, torch.Tensor 格式相互转化

辰鑫chenxin 82 0 0

hoohack

python numpy 转 array

hoohack 14 0 0

雪域迷影

Python OpenCV 从视频保存图片

雪域迷影 216 0 0

小北的爹

numpy.array 二维矩阵删除特定的某些行或者列

小北的爹 49 0 0

王老师说

Python爬虫之保存图片到本地

王老师说 12 0 0

雅典娜的棒槌

【Numpy】Array数组

雅典娜的棒槌 82 0 0

猎书客er

180526 将numpy矩阵保存为图片

猎书客er 111 0 0

海牙秋天

python如何保存矩阵,保存matrix,保存numpy.ndarray

海牙秋天 180 0 0

精彩评论(0)

0 0 举报