Skip to content

Don't crash on files with no Hough lines#10

Open
eprochasson wants to merge 1 commit intokakul:masterfrom
eprochasson:patch-1
Open

Don't crash on files with no Hough lines#10
eprochasson wants to merge 1 commit intokakul:masterfrom
eprochasson:patch-1

Conversation

@eprochasson
Copy link
Copy Markdown

If no lines are detected, detect_skew returns {"Image File": img_file, "Message": "Bad Quality"}, which then crashes deskew as the key Estimated Angle can not be found. Simple fix to propose a default value.

If no lines are detected, `detect_skew` returns `{"Image File": img_file, "Message": "Bad Quality"}`, which then crashes `deskew` as the key `Estimated Angle` can not be found. Simple fix to propose a default value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant