Skip to content

Latest commit

 

History

History
18 lines (7 loc) · 654 Bytes

readme.md

File metadata and controls

18 lines (7 loc) · 654 Bytes

autoit script utilizing imagemagick that can correct skews for images containing text, and automatically crop to the text.

output result

examples:
'input' folder contains some skewed images.
'output' folder contains the resulting corrected images.

theory of operation:
images containing text with a median filter applied creates long blobs, which we can outline, then form lines based on, and figure out the angles of these lines, the strongest of which is used to apply a corrective rotation.