且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将 Numpy 数组保存为图像

更新时间:2023-02-13 22:13:56

您可以使用 PyPNG.这是一个纯 Python(无依赖)开源 PNG 编码器/解码器,它支持 将 NumPy 数组写入图像.

You can use PyPNG. It's a pure Python (no dependencies) open source PNG encoder/decoder and it supports writing NumPy arrays as images.