After an update, tesseract cannot find the language files anymore, because the path where TESSDATA_PREFIX changes after every update, so I have to change TESSDATA_PREFIX every time.
Now it is /opt/homebrew/Cellar/tesseract/5.4.1
and tomorrow /opt/homebrew/Cellar/tesseract/5.4.2
which is very annoying.
The TESSDATA_PREFIX environmental variable should not contain a version number.
Suggested FixNo version number in the TESSDATA_PREFIX path.
tesseract -vtesseract 5.4.1
leptonica-1.84.1
libgif 5.2.1 : libjpeg 8d (libjpeg-turbo 3.0.0) : libpng 1.6.43 : libtiff 4.6.0 : zlib 1.2.12 : libwebp 1.4.0 : libopenjp2 2.5.2
Found NEON
Found libarchive 3.7.4 zlib/1.2.12 liblzma/5.4.6 bz2lib/1.0.8 liblz4/1.9.4 libzstd/1.5.6
Found libcurl/8.6.0 SecureTransport (LibreSSL/3.3.6) zlib/1.2.12 nghttp2/1.61.0
No response
Other Operating SystemmacOS Sonoma 14.5.
uname -aDarwin armemac.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
CompilerPre-compiled by homebrew.
CPUApple Silicon M1 (arm64) but on another Macbook which is an Intel i5 with the same OS, Homebrew and the same tesseract version the issue also occurs.
Virtualization / ContainersN/A
Other InformationNo response
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4