Loading rpc/methods.py +3 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,9 @@ def _deskew(image_path: str, max_skew: int = 10) -> float: ) if lines is None: return 0 if not any(lines): if type(lines) != numpy.ndarray: return 0 if not lines.any(): return 0 # Collect the angles of these lines (in radians) angles = [] Loading Loading
rpc/methods.py +3 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,9 @@ def _deskew(image_path: str, max_skew: int = 10) -> float: ) if lines is None: return 0 if not any(lines): if type(lines) != numpy.ndarray: return 0 if not lines.any(): return 0 # Collect the angles of these lines (in radians) angles = [] Loading