Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Code Block

svn co http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr

...


cd tesseract-ocr

...


./configure

...


make

...


sudo make install

...

Installing OCRopus

...

      

3 Installing OCRopus

Following the instructions listed here: http://sites.google.com/site/ocropus/install-0-3

Code Block

./configure --without-fst --without-leptonica
make
sudo make install
Note

OCRopus instructions only tell you to run make install, but you should be using sudo make install to install properly.

  • Note: running configure with the --without-SDL – OKran make – ERROR flag will cause an error during the make process:
Code Block
/home/leviticus/ocropus/iulib/utils/dgraphics.cc:154: undefined reference to `SDL_FillRect'
/home/leviticus/ocropus/iulib/utils/dgraphics.cc:155: undefined reference to `SDL_UpdateRect'
/home/leviticus/ocropus/iulib/utils/dgraphics.cc:157: undefined reference to `SDL_UpdateRect'
collect2: ld returned 1 exit status
make[1]: *** [ocroscript] Error 1
make[1]: Leaving directory `/home/leviticus/ocropus/ocropus-0.3/ocroscript'
make: *** [all-recursive] Error 1
  • re-ran ./configure --without-fst --without-leptonica (configure with SDL) – OK
  • ran make – OK
  • ran sudo make install (NOTE: OCRopus instructions only tell you to run make install) – OK

Therefore, make sure to not use the --without-SDL flag.

4 Running OCRopus

Run at command line:
ocroscript recognize data/pages/alive_1.png

...