From e00c33b5af8cb8799188cc55f3f165843a9e3b44 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Tue, 25 Jun 2024 15:35:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=97=A0=E9=9C=80=E6=97=8B?= =?UTF-8?q?=E8=BD=AC=E7=9A=84=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review/photo_review.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photo_review/photo_review.py b/photo_review/photo_review.py index 09a415d..a42bbe0 100644 --- a/photo_review/photo_review.py +++ b/photo_review/photo_review.py @@ -107,7 +107,7 @@ def get_image_rotation_angle(img): # 旋转图片 def rotate_image(img, angle): if angle == 0: - return + return img height, width, _ = img.shape if angle == 180: new_width = width