What do you mean by "almost always chooses the wrong side for the page"? That, in your image, it would have picked the big trapezoid on the left rather than the rectangle on the right? That wasn't my experience with it. Granted, I've only tried it on half a book's worth of images at this point, but the only time I saw it picking the "facing" page is when the "correct" page was blank -- the problem I alluded to in my initial post. In my books, that's a handful of images, and Scan Tailor gives me the option of interactively specifying the page when I'm not happy with its automatic selection. In some cases, it did pick a bit of the facing page along with the correct page, but it was easy to find those by going through and asking for the "widest" page interactively, and fixing those manually. For me, it certainly didn't happen with most pages; I'd say it was less than 1 in 20.
I tried PostProcessor, but don't really use it because (for me) it always seemed to crash after a few pages ("negative border added" or "null pointer exception"). I don't have the luxury of going back and re-photographing some of the books I've scanned, so changing the images to conform to what PostProcessor wants wasn't an option. And, honestly, I couldn't see anything wrong with most of the images it was having a problem with anyway. It's obvious that a lot of work has gone into PostProcessor, but it just wasn't doing the job for me. I think it would be great if you could spare some time to make it more robust; sadly, in spite of my initial offer to help with it, I probably won't have any time to devote to it myself before 2010. I did steal your main logic for Yapp :>
I can live with keystoning, and even with images that are rotated a bit. I guess everyone's requirements are different, which is why it's good that we have options. For me, readability depends on clear (contrasty) text, and I also want good greyscale or color image quality. I don't have a lot of time to go in page-by-page and specify what is text and what is image, so the program has to be able to handle images automatically without freaking out. So far, it looks like Scan Tailor does a pretty good job of that (which may be why it doesn't attempt to correct keystoning), and the fact that it's interactive means I can tweak what doesn't look right pretty easily.
