python opencv 批量旋转图像,使 图像内容不改变,并保存

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python opencv 批量旋转图像,使 图像内容不改变,并保存相关的知识,希望对你有一定的参考价值。

参考技术A from PIL import Image
import os

import cv2
from math import *
import numpy as np

path_old ='G:'

degrees=[]
for k in range(1,25):
degrees.append(k*15)

for item in os.listdir(path_old):
in_imgpath = path_old + item
out_name = os.path.splitext(item)[0]
print(in_imgpath)

以上是关于python opencv 批量旋转图像,使 图像内容不改变,并保存的主要内容,如果未能解决你的问题,请参考以下文章