一.安装 autoconf automake libtool和libjpeg-devel libpng-devel libtiff-devel zlib-devel
zypper install autoconf automake libtool
zypper install libjpeg-devel libpng-devel libtiff-devel zlib-devel
二.重新编译leptonica
执行以下代码:
./autogen.sh
./configure
make
make install
三.查看 tesseract 的 version 信息,存在 libpng
tesseract -v
tesseract 5.0.0-alpha-20201231-407-g52a8
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
四.查看语言支持
tesseract --list-langs
List of available languages (1):
eng