3 ms·
Quick hack, badly tested, but seems to work: https://gist.github.com/dwastberg/9faea8a4ceb6dc05b52e https://gist.github.com/dwastberg/9faea8a4ceb6dc05b52e
by dagw 11y ago
Quick hack, badly tested, but seems to work:
https://gist.github.com/dwastberg/9faea8a4ceb6dc05b52e https://gist.github.com/dwastberg/9faea8a4ceb6dc05b52e
- dagw 11y agoOf course this code breaks if the scan isn't straight.
- semiquaver 11y agoYou're already using imagemagick's `convert` in that script - there's also `textcleaner -u`[1] which among other things automatically straightens slightly crooked text in scans (less than 5 degrees). [1] http://www.fmwconcepts.com/imagemagick/textcleaner/ http://www.fmwconcepts.com/imagemagick/textcleaner/