提交 de36384a 编写于 作者: 文幕地方's avatar 文幕地方

fix angle 0 image rotate error

上级 e1999d32
...@@ -100,7 +100,8 @@ class StructureSystem(object): ...@@ -100,7 +100,8 @@ class StructureSystem(object):
'180': cv2.ROTATE_180, '180': cv2.ROTATE_180,
'270': cv2.ROTATE_90_CLOCKWISE '270': cv2.ROTATE_90_CLOCKWISE
} }
img = cv2.rotate(img, cv_rotate_code[angle]) if angle in cv_rotate_code:
img = cv2.rotate(img, cv_rotate_code[angle])
toc = time.time() toc = time.time()
time_dict['image_orientation'] = toc - tic time_dict['image_orientation'] = toc - tic
if self.mode == 'structure': if self.mode == 'structure':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册