I've been looking for documentation on how to run the ocropus-0.2
tests,
but so far have been unable to find any.  Consequently, I've
documented my
installation instructions and my experiences running these tests
below.

These instructions show how to install ocropus-0.2 and
the necessary software to run the ocropus-0.2
test programs.  I was able to run ./run-tests after fixing a bug
and removing some tests that were prepended with the comment
"# fix the following scripts", but was unable to run the big-tests
completely
without error.

Are these errors in big-tests known, or is it an installation problem
on my
side?

Thanks,
--Graham

Installation and testing instructions for ocropus-0.2 on Debian Etch

        apt-get install jam libpng-dev libjpeg-dev libtiff4-dev

        Download tesseract from Google.
        cd
        tar xvfz tesseract-2.03.tar.gz
        cd tesseract-2.03
        patch -p1 < ../ocropus-0.2/tesseract-2.03-patch.diff
        ./configure
        make
        sudo make install
        Ignore error about trying to install java.

        which tesseract
        /usr/local/bin/tesseract

        We now need the language data files.
        The language file can be downloaded from
        http://code.google.com/p/tesseract-ocr/downloads/list
        These are to be placed in /usr/local/share/tessdata/

        su
        cd /usr/local/share
        tar xvfz tesseract-2.00.eng.tar.gz
        chmod -R ugo+r tessdata
        exit

        cd
        cd tesseract-2.03
        tesseract phototest.tif out
        cat out.txt

        For OpenFST library ...
        svn checkout http://ocropus.googlecode.com/svn/external ocropus-
external
        cd ocropus-external/fst-ocropus/fst
        make (takes a long time)
        make test
        sudo make install

        Make sure libfst.so is known to ld linker.
                su
                vi /etc/ld.so.conf.d/i486-linux-gnu.conf (add "include 
/usr/local/
lib"
                ldconfig
                exit

        Download the ocropus test image tar.gz file.
        cd
        tar xvfz ocropus-0.2-test-images.tar.gz

        Download and unpack ocropus tar.gz file.
        You must have installed tessearct at this point.
        cd
        cd ocropus-0.2
        ./configure --with-fst

        jam
        sudo make install

        ocroscript/ocroscript rec-tess data/pages/alice_1.png > alice.html

        Use a web browser to check alice.html
        lynx alice.html

        Run tests after installing.
        cd ocropus-0.2
        cd ocroscript
        There is a bug in ./run-tests.  Add "cd .." before "./run-toplevels".

        export OCROPUS_DATA=/home/guest/ocropus-0.2/data
        vi run-toplevels
        Then comment out the scripts under
                # fix the following scripts
        ./run-tests

        All tests should succeed.

        ./run-bigtests

        Currently some of these tests fail for me.

                *** bigtest-alice-bpnet.lua ***

                bigtest-alice-bpnet.lua:57 TEST FAILED line 2
                   Alicewasbeginningtogetverytiredofsittingbyhersisteronthebank
                   AliCewaSbeginningtogetverytiredofsittingbyherSiSteronthebank
                bigtest-alice-bpnet.lua:57 TEST FAILED line 3
                   andofhavingnothingtodoonceortwiceshehadpeepedintothebookher
                   andOfhavingnothingtodOonCeortwiCeShehadpeepedintothebookher

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to