shellhttps://github.com/tesseract-ocr/tesseract/releases/tag/5.3.3
shellwget http://www.leptonica.org/source/leptonica-1.78.0.tar.gz
shelltar -xvf leptonica-1.78.0.tar.gz
shell./configure
make
make install
shellyum -y install automake libtool
shellvim /etc/profile
shellexport LD_LIBRARY_PATH=/usr/local/lib
export LIBLEPT_HEADERSDIR=/usr/local/include
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
shellsource /etc/profile
shellyum install -y centos-release-scl devtoolset-8-gcc*
shellscl enable devtoolset-8 bash
shellyum install gcc-c++ libstdc++-devel
tar -xvf tesseract-4.0.0.tar.gz
cd ./tesseract-4.0.0
./autogen.sh
./configure
make
make install
shelltesseract --version
评论区
评论加载中...