[magick-users] extracting text area from image

Ron Savage ron at savage.net.au
Sun Jun 10 16:47:50 PDT 2007


Alexandru Ciobanu wrote:

Hi Alexandru

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

Do you mean

(1) extract an image which is the same size as the text area, or
(2) extract the text letter-by-letter

The latter is called Optical Character Recognition, and I do not know of 
any such feature within IM.

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

No image attached. Please upload to your web site.

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

Sure.

> 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.

Sounds reasonable, but also sounds like (1) above.
-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/


More information about the Magick-users mailing list