arunmep has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: is it possible to search an image
by Anonymous Monk on Oct 30, 2006 at 06:27 UTC
    Search for OCR - Optical Character Recognition
Re: is it possible to search an image
by themage (Friar) on Oct 30, 2006 at 09:37 UTC
    Hi arunmep,

    For me your question can have two diferent meanings.

    The first one is that you want to search for text in the image itself, in which case the sugestion given by the Anonymous Monk is valid. You shuold search for OCR on images.

    The second possible meaning is that you want to look for strings in the file content itself, not in the image. In this case I would recomend Image::Magick. $image->Get('Comment'); will return what you want.

Re: is it possible to search an image
by apotheon (Deacon) on Oct 30, 2006 at 09:33 UTC

    Are you asking whether it's possible to search through text that is visible in the image, or text that is embedded in the image file itself, amidst the binary file's contents (think: steganography)?

    print substr("Just another Perl hacker", 0, -2);
    - apotheon
    CopyWrite Chad Perrin

Re: is it possible to search an image
by dorward (Curate) on Oct 30, 2006 at 09:54 UTC
    Yet another interpretation of your question is that you are looking to read EXIF data. See Image::EXIF
Re: is it possible to search an image
by zentara (Cardinal) on Oct 30, 2006 at 12:36 UTC
    And even another possible interpretation ... use the linux "strings" utility.

    It's not Perl, but "strings myimage.jpg" will yield all strings of printable characters. Like:

    *I7K dbn^ "S3t0 VePz |2`j ]C<v( eH=BZ!

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
Re: is it possible to search an image
by wazoox (Prior) on Oct 30, 2006 at 12:54 UTC