trufanov-nok / scantailor-universal

ScanTailor Universal - a fork based on Enhanced+Featured+Master versions of ST
http://scantailor.org
Other
183 stars 16 forks source link

Adding different dewarping algorithm as external option #118

Open maximka1812 opened 1 year ago

maximka1812 commented 1 year ago

I experimented with different dewarping algorithms and how they work if you want mostly automatic high quality result

This one turned out the best for now:

Note that this code work with native resolution during transformation and also makes binarization always. Instead I use 2x bicubic upsampling for input and output grayscale version.

Idea can be to allow ST to be able to call external software (may be Windows only) for processing page (as external file) on early stage right before making page angle adjustments.

Note that referenced dewarping also usually correctly turns the page.