###CENTOS 下 编译安装 tesseract-ocr 3.0.4 识别文字###参考资料:https://www.cnblogs.com/dajianshi/p/4932882.htmlhttps://www.cnblogs.com/cmyxn/p/7007932.html如果报错"aclocal:not found"则安装automake即可,yum -y install automakelinux 修复aclocal:not found 未找到此命令.https://ftp.gnu.org/gnu/https://blog.csdn.net/liguangxianbin/article/details/79742642之后又报错:"git: command not found"安装yum -y install git又报错了error: C++ compiler cannot create executables安装yum install gcc gcc-c++ gcc-g77##https://www.cnblogs.com/ruigu/p/8302375.html接着又报错了"libtool: Version mismatch error."运行命令:autoreconf -ivf##https://blog.csdn.net/dark_gezi/article/details/59055231"""Configuration is done.You can now build and install tesseract by running:$ make$ sudo make installYou can not build training tools because of missing dependency.Check configure output for details.[root@CNSZ22PL2970 tesseract-3.04.00]# make && make installmake all-recursivemake[1]: Entering directory `/root/tesseract_ocr_pkgs/tesseract-3.04.00'Making all in ccutilmake[2]: Entering directory `/root/tesseract_ocr_pkgs/tesseract-3.04.00/ccutil'make[3]: Entering directory `/root/tesseract_ocr_pkgs/tesseract-3.04.00/ccutil'depbase=`echo ambigs.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG -I/usr/local/include/leptonica -DTESSDATA_PREFIX=/usr/local/share/ -std=c++11 -MT ambigs.lo -MD -MP -MF $depbase.Tpo -c -o ambigs.lo ambigs.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: Version mismatch error. This is libtool 2.4.6, but thelibtool: definition of this LT_INIT comes from libtool 2.4.2.libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6libtool: and run autoconf again.make[3]: *** [ambigs.lo] Error 63make[3]: Leaving directory `/root/tesseract_ocr_pkgs/tesseract-3.04.00/ccutil'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/root/tesseract_ocr_pkgs/tesseract-3.04.00/ccutil'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/tesseract_ocr_pkgs/tesseract-3.04.00'make: *** [all] Error 2"""运行命令:tesseract 00.jpg text_info -l eng报以下错误:Tesseract Open Source OCR Engine v3.04.00 with LeptonicaError in pixReadMemPng: function not presentError in pixReadMem: png: no pix returnedError during processing.[root@CNSZ22PL2970 ~]# tesseract -vtesseract 3.04.00leptonica-1.72 安装识别图片的依赖包:参考资料:https://blog.csdn.net/joe8910/article/details/84969195重新运行:tesseract -v[root@CNSZ22PL2970 ~]# tesseract -vtesseract 3.04.00leptonica-1.72libjpeg 6b (libjpeg-turbo 1.2.90) : libpng 1.5.13 : zlib 1.2.7再次运行识别图片的命令[root@CNSZ22PL2970 ~]# tesseract 00.jpg text_info -l engTesseract Open Source OCR Engine v3.04.00 with Leptonica