I have about 1,000 scanned / photographed images, each with different formats but all with rectangular/square shape, that need to be cropped to remove the background and the white space around the images. The cropping needs to be done in an intelligent way, for example by identifying the background (wooden table / brown color range) and white space around each photo, preferably rotated to vertical/horizontal position (max few degrees) and crop to a rectangular format.
I'd expect that, in these days of artificial intelligence with software that recognizes faces, there is a software app to do that but after several hours searching I haven't been able to find one. I have read multiple articles on this forum and elsewhere on the web and tried multiple options, but none of them do a proper job:
- Photoshop automatic crop and straighten function (in batch action) fixes less than 10% of the images and continuously needs manual intervention. It also creates multiple cropped artefact images with tiny cropped areas and cannot figure out which one to save;
- GIMP cropping (as described by Francois Malan) only works to separate out images from one scanned page, not for cropping many single images;
- Irfanview cannot intelligently find the borders so is useless;
- ImageMagic (and many other apps) that I have tried do not have this automatic capability either.
All these programs, including Photoshop, are great if you want to crop using fixed positions and/or formats, but none of these seem to have the intelligence to find the white edges of an image and use that for cropping. Cropping 1,000 images by hand (with Photoshop support) will take me probably about 30 hours work (2 minutes each including some deskewing).
Any suggestion? The key topics in stackexchange are several years old so perhaps there is a new app that can handle this without manual intervention. Given the potential time savings I don't mind paying for software that does a proper job. Worst case I will re-photograph all images spending about 10-15 seconds extra per image to make sure they are lined up horizontally and do the cropping while taking the photo (or send them to someone in a low-wage country to do this for me :-)). Cheers