图像保存, scipy, OpenCV

scipy

def savearray(img_array, img_name):
    scipy.misc.toimage(img_array).save(img_name)
    print('img saved: %s' % img_name)

OpenCV

cv2.imwrite(os.path.join(SAVED_IMAGES, file_name), final_image)

猜你喜欢

转载自blog.csdn.net/qq_39124762/article/details/82945039