I want to scan hundreds of A4 papers, but I don't have a scanner.
I have a good camera though, so I:
- Put the paper on the floor
- Focus powerful lights on it (including sunlight)
- With the camera, zoom in to reduce distortion
- Take a picture from far above
I end up with a whole folder of JPG files that have the following problems:
- Cushion distortion
- White is rather grey-yellow
- Margins around the paper
I am looking for a program that can, for each image, automatically:
- Detect and fix the cushion distortion and non-orthogonal angle
- Detect and fix the rotation
- Guess where the white is and make it really white, to make the result more beautiful and increase compressibility, without reducing readability
- Detect and crop out the margin, so that the resulting file is the same shape as the paper. Paper border can always be guessed by seeing the shadows and differences in colour.
- Can run automatically on the folder of images, no human manipulation needed
- Free, ideally open source
- Run on Ubuntu Linux
Any sensible output format is fine, for instance PNG or PDF.
It can be GIMP-based if it is runnable from command-line or can otherwise process hundreds of JPG files without human intervention.