一、下载 tesseract 源码
1.1)下载地址
Github下载:https://github.com/tesseract-ocr/tesseract/releases
CSDN下载:https://download.csdn.net/download/fengbohello/20664563
1.2)解压文件
tar xzf tesseract-5.0.0-alpha-20210401.tar.gz
二、编译&安装 tesseract
2.1)安装依赖库 leptonica
参考:https://blog.csdn.net/fengbohello/article/details/119255333
2.1)配置编译选项
cd tesseract-5.0.0-alpha-20210401
./autogen.sh
./configure --prefix=/usr
2.3)编译&安装
make && make isntall
2.4)添加语言文件
参考:https://blog.csdn.net/fengbohello/article/details/119255898
2.4)测试效果
$ tesseract -v
tesseract 5.0.0-alpha-20200401
leptonica-1.81.1
libjpeg 6b (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11
Found AVX2
Found AVX
Found FMA
Found SSE
Found OpenMP 201511