[magick-users] extracting text area from image

Alexandru Ciobanu capsunel at gmail.com
Sun Jun 10 09:34:04 PDT 2007


Hi, all!

I am trying to use ImageMagick to extract strictly
the text area from a photograph of a book page.

If you look at the image attached, I am interested in the
green area and, if possible, the red area.

The problem is that it has to be automated and work
for books of various sizes.

Do you guys have any idea how I could achieve this?

My idea so far, is:
apply a really crazy filter that would transform the
green area into o big uniform blob, so that I can
then extract its coordinates, and then use those
on the original image.

Alex



More information about the Magick-users mailing list