Auto-crop black margins dynamically of scanned images?
- by naxa
I have a notebook photocopied and the photocopy scanned, about 200 pages.
For various reasons I need to print this material. There are large amounts of black areas at the sides of the page (after the page itself ends), "black margins".
The image looks like this:
I would like to remove the black places, but keeping all text.
* The even and odd pages have the black part at different places.
* Notably, there is a white edge outside the black one, too!
* Most notably, the black areas has no fixed width (I've tried to overlay all the images for even and odd pages separately). It's width varies. The batch algorythm should be able to detect it.
Is there a way to remove these black-white margins automatically, keeping the text?