#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Extract text from image file using perl script


    Hi, I'm trying to extract text from image file. Eg: .png, .jpg, etc...

    I have tried below listed perl modules but failed to get exact results

    Image::OCR::Tesseract
    Image::PNG
    OCR::PerfectCR


    OS: Windows XP
    ActivePerl 5.14


    Please suggest!

    Thanks
    Last edited by psatyk; January 22nd, 2013 at 05:19 AM. Reason: Updation
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    spaceBAR Central
    Posts
    229
    Rep Power
    42
    Well if you have tried/tested all the perl solutions, then you can try some other utility, these are just a few I've seen:

    http://www.free-ocr.com/
    http://www.hongkiat.com/blog/copy-image-text/
    http://www.ocrtoword.com/h02_how_to_...mages_ocr.html
    http://mobilehacktrix.blogspot.com/2...les-using.html
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Thanks for your comment


    Yes i found many online and downloadable software for extracting text from any kind of images but i'm trying solution for the same in perl. . .

    Do you have any solution in perl ?????
  6. #4
  7. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,417
    Rep Power
    1871
    "I tried x and it didn't work" isn't a useful description.
    http://www.catb.org/~esr/faqs/smart-...html#beprecise

    Your actual perl code (not just a list of the modules you used),
    an example image file you're having trouble with,
    the results you actually got
    and what you expected

    would make for a much more useful post people could contribute to.

    Maybe your source images are fuzzy to the point of useless that no OCR package can make any reasonable guess.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  8. #5
  9. No Profile Picture
    Still Learning
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Location
    Montreal, Canada
    Posts
    55
    Rep Power
    40
    You should clarify what you want. Transform the image of text to text or do you want the attribute information store in the file?

IMN logo majestic logo threadwatch logo seochat tools logo