推荐使用matplotlib
:
1 2 3 |
import matplotlib matplotlib.image.imsave('xxx.png', array) |
这是对应解释:
1 2 3 4 5 6 7 |
Arguments: *fname*: A string containing a path to a filename, or a Python file-like object. If *format* is *None* and *fname* is a string, the output format is deduced from the extension of the filename. *arr*: An MxN (luminance), MxNx3 (RGB) or MxNx4 (RGBA) array. |
保存的图片类似彩图。
当然,OpenCV
也行:
1 2 3 4 |
import cv2 import numpy as np cv2.imwrite("xxx.png", array) |
试试看看行不行
非常好
能否给个联系方式,交流一下请教一下
我感觉我解决了这个Netframework的问题了,安装好要求重启,重启以后安装deepl,但是又出问题了,显示there was an error while installing the appl
请您详细教我一下,怎么下载安装您说的这个.NET
又来麻烦您了,我下载好了,安装的时候提示:Failed to install the .NET Framework, try installing the latest version manuall
win7旗舰版
感谢回复。不是直接点就能安装啊,下载下来的是个压缩文件,解压后有6个内容:.background、.HFS+Private Directory Data、[HFS+Private Data]、Deep