I'm looking for a scriptable program (or .NET library) that I can point at a directory and say, "crop and deskew all the scans this directory, in place". (Scriptable because I have to run this on tens of thousands of directories.)
The scans may have high- or low-contrast borders; the program needs to be smart enough to leave images alone when it can't figure out the border. (And needs to be smart enough to know that if it thinks it's found the border, but cropping there would cut off 50% of the image, it hasn't really found the border!)
I've had OK results with Kofax VRS, but it seems that it can only be run at scanning time, not later. (It also slows down my sheet-fed scanners significantly.) BatchCrop runs later, but gives only OK results, and requires manual operation. ImageMagick seems like it might do what I want, if I had any idea what all the parameters actually do...