Commit 74f7e626 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix deskew (again)

parent 1339d576
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 = []