< 返回列表时间: 2019-04-04来源:OSCHINA
【围观】麒麟芯片遭打压成绝版,华为亿元投入又砸向了哪里?>>> ###CENTOS 下 编译安装 tesseract-ocr 3.0.4 识别文字 ###参考资料: 如果报错"aclocal:not found" 则安装automake即可,yum -y install automake linux 修复aclocal:not found 未找到此命令. 之后又报错:"git: command not found" 安装yum -y install git 又报错了 error: C++ compiler cannot create executables 安装yum install gcc gcc-c++ gcc-g77 ## 接着又报错了"libtool: Version mismatch error." 运行命令:autoreconf -ivf ## """ Configuration is done. You can now build and install tesseract by running: $ make $ sudo make install You can not build training tools because of missing dependency. Check configure output for details. [root@CNSZ22PL2970 tesseract-3.04.00]# make && make install make all-recursive make[1]: Entering directory `/root/tesseract_ocr_pkgs/tesseract-3.04.00' Making all in ccutil make[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.Plo libtool: Version mismatch error. This is libtool 2.4.6, but the libtool: definition of this LT_INIT comes from libtool 2.4.2. libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6 libtool: and run autoconf again. make[3]: *** [ambigs.lo] Error 63 make[3]: Leaving directory `/root/tesseract_ocr_pkgs/tesseract-3.04.00/ccutil' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/tesseract_ocr_pkgs/tesseract-3.04.00/ccutil' make[1]: *** [all-recursive] Error 1 make[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 Leptonica Error in pixReadMemPng: function not present Error in pixReadMem: png: no pix returned Error during processing. [root@CNSZ22PL2970 ~]# tesseract -v tesseract 3.04.00 leptonica-1.72 安装识别图片的依赖包: 参考资料: 重新运行:tesseract -v [root@CNSZ22PL2970 ~]# tesseract -v tesseract 3.04.00 leptonica-1.72 libjpeg 6b (libjpeg-turbo 1.2.90) : libpng 1.5.13 : zlib 1.2.7 再次运行识别图片的命令 [root@CNSZ22PL2970 ~]# tesseract 00.jpg text_info -l eng Tesseract Open Source OCR Engine v3.04.00 with Leptonica