将ffprobe与opencv判断视频旋转角度信息均做判断

This commit is contained in:
jiajie555
2025-04-18 16:59:48 +08:00
parent 3c9701aad3
commit 7c87e776e1
2 changed files with 17 additions and 10 deletions

View File

@ -310,8 +310,8 @@ class LoadImages:
im0 = cv2.rotate(im0, cv2.ROTATE_90_COUNTERCLOCKWISE)
###======================
# if self.orientation == 270:
# im0 = cv2.rotate(im0, cv2.ROTATE_90_COUNTERCLOCKWISE) # for use if cv2 autorotation is False
if self.orientation == 270:
im0 = cv2.rotate(im0, cv2.ROTATE_90_COUNTERCLOCKWISE) # for use if cv2 autorotation is False
s = f'video {self.count + 1}/{self.nf} ({self.frame}/{self.frames}) {path}: '
else: