Page 1 of 1

Splitcrop with fuzzy parameter

Posted: 2016-08-02T04:57:11-07:00
by Vilius

I am trying to process the scanned text. What I would like to achieve is to split a page horizontally _between_ two lines of text, and then add some space around the croped part of the page. Any idea how to recognize the block of the text to avoid cutting the textlines?

Re: Splitcrop with fuzzy parameter

Posted: 2016-08-02T09:09:56-07:00
by fmw42
Average the image down to one column and look for white values that represent spaces between lines. For this to work, the image cannot be rotated. All lines of text must be horizontal and the space between lines must avoid letters that drop down or rise up into the spaces.