|
@@ -270,5 +270,6 @@ if __name__ == "__main__":
|
|
|
print(result)
|
|
print(result)
|
|
|
|
|
|
|
|
if result.needs_rotation:
|
|
if result.needs_rotation:
|
|
|
|
|
+ output_image_path.parent.mkdir(exist_ok=True)
|
|
|
rotated_img = classifier.rotate_image(img, result.rotation_angle)
|
|
rotated_img = classifier.rotate_image(img, result.rotation_angle)
|
|
|
- cv2.imwrite(output_image_path, rotated_img)
|
|
|
|
|
|
|
+ cv2.imwrite(output_image_path.as_posix(), rotated_img)
|