diff --git a/alyn/deskew.py b/alyn/deskew.py index 029be4f..2c58c80 100755 --- a/alyn/deskew.py +++ b/alyn/deskew.py @@ -22,7 +22,7 @@ def deskew(self): img = io.imread(self.input_file) res = self.skew_obj.process_single_file() - angle = res['Estimated Angle'] + angle = res.get('Estimated Angle', 0) if angle >= 0 and angle <= 90: rot_angle = angle - 90 + self.r_angle