Page 1 of 1

Autocrop multiple pictures in a single image

Posted: 2012-12-19T16:40:15-07:00
by mimoio
Hi all,

I have a bunch of images that basically consists in a white background and some (not more than 7) rectangular photos at different positions (not overlapped) and with different orientations.

Does anyone know an algorithm or software to extract all the pictures in the image, autocrop them and leave then without rotation?

Thx in advance!

Re: Autocrop multiple pictures in a single image

Posted: 2012-12-19T17:21:13-07:00
by fmw42
If you are on Unix (Linux, Mac or Windows/Cygwin), then see my script, multicrop, at the link below.

Re: Autocrop multiple pictures in a single image

Posted: 2012-12-21T15:52:20-07:00
by mimoio
Nice, thx

this seems to be exactly what i am looking for. I'll have a look a it.

Regards,

mimoio

Re: Autocrop multiple pictures in a single image

Posted: 2013-01-01T21:40:45-07:00
by anthony
Note you can speed up that script by adjusting the 'search grid' it uses to find photos to extract from the background.
A sparse grid is very fast, while a small grid finds very small items that may otherwise be missed.

I have for example used it on magazine pages to extract photos, but added a 'ignore small crop areas' where the search grid hit a letter or word from the page, rather than a larger photo.