修正无需旋转的返回值
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user