centos7下安装tesseract-ocr进行验证码识别,centos7 安装tesseract

1  安装centos系统依赖

yum install -y automake autoconf libtool gcc gcc-c++ yum install -y libpng-devel libjpeg-devel libtiff-devel

2

安装leptonica

wget http://www.leptonica.org/source/leptonica-1.72.tar.gz
tar xvzf leptonica-1.72.tar.gz cd leptonica-1.72/ ./configure make && make install

3

安装tesseract-ocr

wget https://github.com/tesseract-ocr/tesseract/archive/3.04.zip
unzip 3.04.zip cd tesseract-3.04/ ./configure make && make install sudo ldconfig

4

  • 在https://github.com/tesseract-ocr/tessdata 下载对应语言的模型文件
  • 将模型文件移动到/usr/local/share/tessdata

  (eng.traineddata     osd.traineddata)

 


 

 

https://www.cnblogs.com/arachis/p/OCR.html

 

https://blog.csdn.net/diyiday/article/details/80004793

你可能感兴趣的:(centos7下安装tesseract-ocr进行验证码识别,centos7 安装tesseract)