Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

Jonathan's Notes on Installing OCRopus 0.3

OCRopus 0.3
Ubuntu 8.10 (Intrepid Ibex)
Components required prior to install: g++, scons, svn.

If you have problems downloading any of the packages or libraries required, try changing the server which apt-get or Synaptic use. In our experience, mirror.csclub.uwaterloo.ca/ubuntu was good.

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

Installing iulib

  • Download iulib 0.3 package from iulib's google code page. http://code.google.com/p/iulib/
  • Get any missing libraries, run: sudo apt-get install libpng12-dev libjpeg62-dev libtiff4-dev libavcodec-dev libavformat-dev libsdl-gfx1.2-dev libsdl-image1.2-dev
  • First run sudo scons install //this avoids a colib error.
  • Then run sudo make install

Installing Tesseract

Installing OCRopus

  • ran ./configure --without-fst --without-leptonica --without-SDL – OK
  • ran make – ERROR
/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

Running OCRopus

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

This will print an HTML document to stdout with the text conversion of the image. Pipe to Firefox or redirect output to file and open in browser.

  • No labels