Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.66 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. sudo apt-get install cmake libtiff4-dev swig libcv2.1 libcv-dev
  2. mkdir ~/tools/leptonica
  3. cd ~/tools/leptonica
  4. wget http://leptonica.googlecode.com/files/leptonlib-1.60.tar.gz
  5. tar -xvf leptonlib-1.60.tar.gz
  6. cd leptonica-1.60
  7. ./configure
  8. make
  9. sudo make install
  10. cd ~/tools
  11. wget http://tesseract-ocr.googlecode.com/files/tesseract-2.04.tar.gz
  12. tar -xvf tesseract-2.04.tar.gz
  13. cd tesseract-2.04
  14. wget http://tesseract-ocr.googlecode.com/files/tesseract-2.00.eng.tar.gz
  15. tar -xvf tesseract-2.00.eng.tar.gz
  16. echo "HAND EDIT add include for stdio.h to avoid  viewer/svutil.cpp:323: error: ‘snprintf’ was not declared in this scope"
  17. ./configure
  18. make
  19. sudo make install