博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux配置tesseract
阅读量:6572 次
发布时间:2019-06-24

本文共 2722 字,大约阅读时间需要 9 分钟。

hot3.png

###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

转载于:https://my.oschina.net/kyo4321/blog/3032635

你可能感兴趣的文章
【javascript】js检验注册密码强度效果
查看>>
Linux—MySQL安装配置详解
查看>>
细数魅族metal电信版手机3宗罪。
查看>>
IIS+PHP+MYSQL安装配置
查看>>
Django开发密码管理表实例【附源码】
查看>>
[视频]MAC中如何单独放大文本字体
查看>>
开发规范3:CSS
查看>>
MongoDB索引概念及使用详解
查看>>
MySQL主从的一致性校验及修复
查看>>
最长数组对 Maximum Length of Pair Chain
查看>>
我的友情链接
查看>>
JS让本地图片预览不再难-jquery插件
查看>>
mysql的安装以及开启远程访问
查看>>
我的友情链接
查看>>
Oracle IO问题解析(一)
查看>>
开源框架_Index
查看>>
Linux系统管理第七周作业【Linux微职位】
查看>>
python基础知识
查看>>
我的友情链接
查看>>
练习6
查看>>