Advertisement
phuoc0191vn

Install tesseract 4.0 ubuntu 16.04

Jun 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. https://github.com/cesco345/OpenCV-With-the-ODROID-XU4Q/blob/master/opencv_installation.txt
  2.  
  3. =========================================================================================
  4.  
  5. Downloading, installing, and building Leptonica and Tesseract
  6.  
  7. first you need to find out the version of Ubuntu that you/ODROId is running:
  8. odroid@odroid:~/tesseract/leptonica-1.74.4/build$ lsb_release -a
  9. No LSB modules are available.
  10. Distributor ID: Ubuntu
  11. Description: Ubuntu 16.04.4 LTS
  12. Release: 16.04
  13. Codename: xenial
  14.  
  15. Now you know that you are running: Ubuntu 16.04.4 LTS xenial
  16.  
  17. sudo apt-get install g++
  18. sudo apt-get install autoconf automake libtool
  19. sudo apt-get install autoconf-archive
  20. sudo apt-get install pkg-config
  21. sudo apt-get install libpng-dev
  22. sudo apt-get install libjpeg8-dev
  23. sudo apt-get install libtiff5-dev
  24. sudo apt-get install zlib1g-dev
  25. sudo apt-get install xzgv
  26.  
  27. #in order to install the training tools you need these libraries:
  28. sudo apt-get install libicu-dev
  29. sudo apt-get install libpango1.0-dev
  30. sudo apt-get install libcairo2-dev
  31.  
  32. http://www.leptonica.org/
  33. wget http://www.leptonica.org/source/leptonica-1.74.4.tar.gz
  34. mkdir tesseract
  35. mv leptonica-1.7.4.tar ./tesseract
  36. cd tesseract
  37. gunzip leptonica-1.74.4.tar.gz
  38. tar -xvf leptonica-1.74.4.tar.gz
  39. mkdir build
  40. cd build
  41. ../configure
  42. make
  43. sudo make install
  44. make -j4 check
  45.  
  46. cd tesseract/
  47. wget https://github.com/tesseract-ocr/tesseract/archive/4.0.0-beta.1.tar.gz
  48. gunzip 4.0.0-beta.1.tar.gz
  49. tar -xvf 4.0.0-beta.1.tar
  50. rm 4.0.0-beta.1.tar
  51. cd tesseract-4.0.0-beta.1/
  52.  
  53. ./autogen.sh
  54. LIBLEPT_HEADERSDIR=/usr/local/include/leptonica ./configure --prefix=/usr/local/ --with-extra-libraries=/usr/local/lib
  55. make
  56. sudo make install
  57. sudo ldconfig
  58. make training
  59. sudo make training-install
  60. wget https://github.com/tesseract-ocr/tessdata/raw/4.00/eng.traineddata
  61. mv eng.traineddata ./tessdata/
  62. cd tessdata/
  63. export TESSDATA_PREFIX=/home/odroid/tesseract/tesseract-4.0.0-beta.1/tessdata/
  64.  
  65. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement