Page 1 of 1

manual deskew?

Posted: 29 May 2010, 01:38
by matt

After compiling the latest version of ScanTailor for OSX (thanks to a timely patch by Tulon, thanks!) I'm now getting a chance to use ST in earnest. Overall it's great, especially the automated page splitting and content selection.

One thing I'm coming across with my current project (an anatomy text with lots of pictures) is that the auto-deskew algorithm seems to be requiring a lot of manual intervention. Basically my images are straight to begin with but (possibly because of the many pictures) ST is "fixing" about 30% of the (400+) pages and introducing 1-5% of skew. Is there any way to lock the deskew to auto-mode or set it manually for more than one page at a time? If not, anyone know where in the code I could attempt to bypass/comment out this module? Also I read something in another topic about a XML file that has some of the image data. Would that be another place I could manually override the auto-computed skew setting?


Re: manual deskew?

Posted: 29 May 2010, 03:11
by Tulon
This is one of the features I don't really like, but if I can't make it work automatically most of the time for any given book, I will implement it sooner or later. Still, first I'd like to get some of those pages to try to fine-tune the automated algorithm.

For now, you will have to modify the source code at filters/deskew/Task.cpp, changing this:

Code: Select all

if (skew.confidence() >= skew.GOOD_CONFIDENCE) {
} else {
into this:

Code: Select all

//if (skew.confidence() >= skew.GOOD_CONFIDENCE) {
//  ui_data.setEffectiveDeskewAngle(-skew.angle());
//} else {

Re: manual deskew?

Posted: 29 May 2010, 04:22
by matt
Hey Tulon,

Thanks for the quick reply and expedient workaround. Also, now that I have a foothold into the code I'll be able to answer some of my own questions (and perhaps even track down a bug or two).

Much appreciation for the great work on the project!