Commit 1339d576 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix list error

parent 239ae7a9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -58,7 +58,9 @@ def _deskew(image_path: str, max_skew: int = 10) -> float:
    lines = cv2.HoughLinesP(
        im_bw, 1, numpy.pi / 180, 200, minLineLength=width / 12, maxLineGap=width / 150
    )
    if not lines:
    if lines is None:
        return 0
    if not any(lines):
        return 0
    # Collect the angles of these lines (in radians)
    angles = []