推荐使用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) |
本文最后更新于2021年12月31日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
删了163.com就好了
这个是V6 版本的吗
大哥可以教一下怎么弄的嘛
大佬,我想请问一下,你这个网站最底下这个当前在线人数是怎么设置的吗? 谢谢,有空看到回复一下就行😉
这种方法用于docker安装的alist不太友好
不错,感谢
就是回调地址是那个?,你的另一篇文章的回调地址还是用不了!
Thanks for finally writing about > Typecho中的Widget_Options用法-马春杰杰 < Loved it!