Note |
---|
Ocropus 0.4+ is now available. |
Following notes are based on the instructions for installing OCRopus 3.0. The following notes were generated in the following environment:
...
- Make sure to have SVN installed prior to this step.
- Installed tesseract according to instructions on OCRopus' install guide (http://sites.google.com/site/ocropus/install-0-3)
...
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 |
- Note: running
configure
with the--without-SDL
– OKranmake
– ERROR flag will cause an error during themake
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 |
...
Therefore, make sure to not use the --without-
...
SDL
flag.
4. Running OCRopus
Run at command line:
ocroscript recognize data/pages/alive_1.png
...