安装centos系统依赖

  • yum install -y automake autoconf libtool gcc gcc-c++ 

  • yum install -y libpng-devel libjpeg-devel libtiff-devel

安装leptonica

github: https://github.com/danbloomberg/leptonica

  • git clone https://github.com/danbloomberg/leptonica
  • cd leptonica
  • ./autogen.sh
  • ./configure
  • make
  • make install

安装tesseract-ocr

github: https://github.com/tesseract-ocr/tesseract

  • git clone https://github.com/tesseract-ocr/tesseract
  • cd tesseract
  • ./autogen.sh
  • ./configure
  • make
  • make install
  • ldconfig

下载训练库

https://github.com/jiangxd0716/tessdata

放入 /usr/local/share/tessdata

检查

[root@booking conf.d]# tesseract --version
tesseract 5.0.0
 leptonica-1.82.0
  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 SSE4.1
 Found OpenMP 201511

代码部署

【Linux】linux部署tesseract

 

添加依赖包,可在 http://tess4j.sourceforge.net/ 下载。

 

github代码:https://github.com/jiangxd0716/ocr

 

相关文章:

  • 2021-12-26
  • 2021-09-25
  • 2021-10-13
  • 2021-07-22
  • 2021-09-11
  • 2022-02-07
  • 2021-11-02
  • 2021-06-12
猜你喜欢
  • 2022-12-23
  • 2021-10-12
  • 2021-10-12
  • 2021-10-25
  • 2022-12-23
  • 2021-12-18
相关资源
相似解决方案