in reply to Re^2: Installing tesseract on XP
in thread Installing tesseract on XP

Go ahead and run the test suite, you'll see much diagnostic info

http://cpansearch.perl.org/src/LEOCHARRE/Image-OCR-Tesseract-1.20/t/02_Image_OCR_Tesseract.t

Replies are listed 'Best First'.
Re^4: Installing tesseract on XP
by casimo (Sexton) on Jun 25, 2009 at 06:56 UTC
    I ran the code and received:

    "all" is not defined in %Image::OCR::Tesseract::EXPORT_TAGS
    at t2.pl line 3
    main::BEGIN() called at C:/Perl/site/lib/Image
    /OCR/Tesseract.pm line 3
    eval {...} called at C:/Perl/site/lib/Image
    /OCR/Tesseract.pm line 3
    Can't continue after import errors at t2.pl line 3
    BEGIN failed--compilation aborted at t2.pl line 3.
      "all" is not defined

      If you've followed the link supplied by Anonymous, then you've run the test script for version 1.20 of the module. But you probably have an older version of Image::OCR::Tesseract - one that apparently doesn't define the tag "all".

      Any chance that you can update to the latest version of the module ? Looks like it's a pure perl module, so this is probably as simple as grabbing Tesseract.pm from http://search.cpan.org/src/LEOCHARRE/Image-OCR-Tesseract-1.20/lib/Image/OCR/Tesseract.pm and sticking it in your perl/site/lib/Image/OCR folder (overwriting the existing Tesseract.pm).

      Then try the test script again. (That test script might need to be able to locate other files from the source distro - you can get the entire source distro from http://search.cpan.org/~leocharre/Image-OCR-Tesseract-1.20/)

      Cheers,
      Rob
        I did have an older version, it was the only one I could find via PPM. I uninstalled it and attempted to install 1.20, but perl Makefile.pl gives me:
        The system cannot find the path specified. Cannot find tesseract executable.

        I have tesseract.exe working from the command line, I'm just not sure where it needs to be for perl.