服务端 CentOS6.5 安装 tesseract3.05
2017-04-19 00:00
127 查看
目前应用场景需要用到图片文字识别,网上搜了一下,开源的库tesseract口碑不错,决定安装试试。
下面主要描述服务端 CentOS6.5 安装 tesseract3.05 版本。
1、先更新依赖
yum -y update
yum -y install libstdc++ autoconf automake libtool autoconf-archive pkg-config gcc gcc-c++ make libjpeg-devel libpng-devel libtiff-devel zlib-devel
#Install AutoConf-Archive
wget ftp://mirror.switch.ch/pool/4/mirror/epel/7/ppc64/a/autoconf-archive-2016.09.16-1.el7.noarch.rpm rpm -i autoconf-archive-2016.09.16-1.el7.noarch.rpm
2、下载并安装依赖程序leptonica
#Install Leptonica from Source
wget http://www.leptonica.com/source/leptonica-1.74.1.tar.gz tar -zxvf leptonica-1.74.1.tar.gz
cd leptonica-1.74.1
./autobuild
./configure
make
make install
cd ..
3、下载并安装tesseract3.05
wget https://github.com/tesseract-ocr/tesseract/archive/3.05.zip
unzip 3.05.zip
cd tesseract-3.05/
./autogen.sh
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig LIBLEPT_HEADERSDIR=/usr/local/include ./configure --with-extra-includes=/usr/local/include --with-extra-libraries=/usr/local/lib
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make
make install
ldconfig
cd ..
4、下载语言包并放置到目录 /usr/local/share/tessdata
cd /usr/local/share/tessdata
wget https://github.com/tesseract-ocr/tessdata/raw/3.04.00/chi_sim.traineddata
wget https://github.com/tesseract-ocr/tessdata/raw/3.04.00/eng.traineddata
5、可以上传一个小图片做测试了
参考:
http://stackoverflow.com/questions/23792373/installing-tesseract-ocr-on-centos-6 http://blog.csdn.net/diandianxiyu_geek/article/details/50522582
下面主要描述服务端 CentOS6.5 安装 tesseract3.05 版本。
1、先更新依赖
yum -y update
yum -y install libstdc++ autoconf automake libtool autoconf-archive pkg-config gcc gcc-c++ make libjpeg-devel libpng-devel libtiff-devel zlib-devel
#Install AutoConf-Archive
wget ftp://mirror.switch.ch/pool/4/mirror/epel/7/ppc64/a/autoconf-archive-2016.09.16-1.el7.noarch.rpm rpm -i autoconf-archive-2016.09.16-1.el7.noarch.rpm
2、下载并安装依赖程序leptonica
#Install Leptonica from Source
wget http://www.leptonica.com/source/leptonica-1.74.1.tar.gz tar -zxvf leptonica-1.74.1.tar.gz
cd leptonica-1.74.1
./autobuild
./configure
make
make install
cd ..
3、下载并安装tesseract3.05
wget https://github.com/tesseract-ocr/tesseract/archive/3.05.zip
unzip 3.05.zip
cd tesseract-3.05/
./autogen.sh
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig LIBLEPT_HEADERSDIR=/usr/local/include ./configure --with-extra-includes=/usr/local/include --with-extra-libraries=/usr/local/lib
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make
make install
ldconfig
cd ..
4、下载语言包并放置到目录 /usr/local/share/tessdata
cd /usr/local/share/tessdata
wget https://github.com/tesseract-ocr/tessdata/raw/3.04.00/chi_sim.traineddata
wget https://github.com/tesseract-ocr/tessdata/raw/3.04.00/eng.traineddata
5、可以上传一个小图片做测试了
参考:
http://stackoverflow.com/questions/23792373/installing-tesseract-ocr-on-centos-6 http://blog.csdn.net/diandianxiyu_geek/article/details/50522582
相关文章推荐
- 服务端 CentOS6.5 编译安装最新版 tesseract 4
- CentOS6.5 下SVN服务端的安装和配置
- centos6.5 zabbix3.0服务端安装
- Centos 6.5 安装Nagios监控服务端与客户端
- centos6.5 安装mongodb 服务端
- CentOS 6.5上安装squid 3.0
- centos 6.5 安装mplayer
- CentOS6.5上Zabbix3.0的RPM安装【三】-安装并添加Agent
- CentOS 6.5 中安装Jenkins
- CENTOS 6.5安装GIT
- [置顶] [Centos6.5]MongoDB安装以及php_mongo扩展的安装
- CentOS6.5安装Kafka
- Centos6.5源码编译安装Hadoop2.5.1
- ECS centos6.5安装mongodb3.2.3
- CentOS6.5安装memcached1.5.0
- CentOS 6.5 安装haproxy
- MySQL数据库系列之Centos6.5系统下RPM包安装MySQL5.6
- centos 6.5 mini 安装wxpython
- virtualbox centos6.5 ambari1.7 单机安装hdp2.2相关笔记
- KVM下centOS6.5+HADOOP2.7.1+zookeeper3.4.6+hbase-1.2.4安装手记