284354749 发表于 2016-12-16 09:16:10

Solr: Install tesseract-ocr

  Install dependency
  #tar -jxzf leptonica-1.69.tar.bz2
  #cd leptonica-1.69
  #./configure
#make -j4
#sudo make install
  --------------------------
 download tesseract-ocr-3.02.02.tar.gz 

  #tar -xzf  tesseract-ocr-3.02.02.tar.gz
  #cd tesseract-ocr
  download language packags and unpack it to  tessdata dir (Note: mv all files in unpack dir to tessdata dir)
  #./autogen.sh
#./configure
#make
#make install
#sudo ldconfig
  3.set env
  vi ~/.bashrc
  export TESSDATA_PREFIX=/path/to/tesseract-ocr
  source ~/.bashrc
  4. test
  #tesseract menu.jpeg out2 -l chi_sim
  Preferences
  https://code.google.com/p/tesseract-ocr/
页: [1]
查看完整版本: Solr: Install tesseract-ocr