python 根据数组生成图片

array = np.asarray(allBigPng, dtype=np.uint8)
image = Image.fromarray(array, 'RGBA')
image.save(outputImgPath + pollutionName + '.png')

注意:dtype一定要写,否则图片生成的不对
posted @ 2017-11-16 11:21  忆如梨花  阅读(12106)  评论(0编辑  收藏  举报