Closed mithunatri closed 2 years ago
Yes, it will be released shortly after Tesseract 5.0 release.
The master branch has code compatible with Tesseract 5.0. There's a 5.0.0-SNAPSHOT available as well.
Thank you! I was able to build it and run samples against Tesseract 5.0.
However, while building I get the following errors in the test phase (I have ignored these errors since I don't make use of those features):
Tests in error:
testTessBaseAPIGetUTF8Text_Pix(net.sourceforge.tess4j.TessAPI1Test): Error looking up function 'pixConvertRGBToGrayGeneral': /lib/x86_64-linux-gnu/liblept.so.5: undefined symbol: pixConvertRGBToGrayGeneral
testTessBaseAPIGetComponentImages(net.sourceforge.tess4j.TessAPI1Test): Could not initialize class net.sourceforge.lept4j.Leptonica1
testTessBaseAPIAnalyseLayout(net.sourceforge.tess4j.TessAPI1Test): Could not initialize class net.sourceforge.lept4j.Leptonica1
testTessBaseAPIDetectOrientationScript(net.sourceforge.tess4j.TessAPI1Test): Could not initialize class net.sourceforge.lept4j.Leptonica1
testGetSegmentedRegions(net.sourceforge.tess4j.Tesseract1Test): Could not initialize class net.sourceforge.lept4j.Leptonica1
testCreateDocumentsWithResults1(net.sourceforge.tess4j.Tesseract1Test): Could not initialize class net.sourceforge.lept4j.Leptonica1
testCreateDocumentsWithResults1(net.sourceforge.tess4j.TesseractTest): Could not initialize class net.sourceforge.lept4j.Leptonica1
testTessBaseAPIGetComponentImages(net.sourceforge.tess4j.TessAPITest): Could not initialize class net.sourceforge.lept4j.Leptonica1
The tesseract and leptonica versions are:
tesseract 5.0.0-beta-20210916-12-g19cc9
leptonica-1.79.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 2.0.3) : libpng 1.6.37 : libtiff 4.1.0 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.1
Found AVX2
Found AVX
Found FMA
Found SSE4.1
Found OpenMP 201511
Found libarchive 3.4.0 zlib/1.2.11 liblzma/5.2.4 bz2lib/1.0.8 liblz4/1.9.2 libzstd/1.4.4
Running it on Ubuntu 20.04 with Java 11
Make sure you use the lept4j version compatible with your Leptonica version.
That did it. Thank you so much!
Closing this issue.
Hi,
Any plans on supporting Tess4J for Tesseract 5? I currently get the following error when trying to start my application against Tesseract 5 --