Tesseract-OCR-iOS
Tesseract-OCR-iOS copied to clipboard
User-Words file not loaded: Error: failed to load user-words
Since I updated to the branch https://github.com/gali8/Tesseract-OCR-iOS/tree/macos-support I'm getting the Message Error: failed to load user-words and my User-Words file is ignored.
Maybe this relates to https://github.com/tesseract-ocr/tesseract/issues/2584 which should be fixed in the current version of tesseract.
@hamchapman Could you please update to the current tesseract Version? Thank You
I'll get to this eventually but if you want it to happen sooner then you can try making a PR that uses the macos-support branch as its base. It should be quite straightforward to bump the tesseract version.
If you're happy to give it a go then I'm happy to help you get a PR up that we can get merged 👍
Thanks for the quick reply. I updated tesseract but i get the following errors when compiling. What am I missing?
ld: warning: ignoring file /usr/local/Cellar/webp/1.0.3/lib/libwebp.dylib, building for iOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/Cellar/openjpeg/2.3.1/lib/libopenjp2.dylib, building for iOS-arm64 but attempting to link with file built for macOS-x86_64
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
...
Hi. I have same problem with user_words config. Can you look at this link and answer this question for me? https://stackoverflow.com/questions/59307205/tesseract-5-0-bazaar-user-words-config-doesnt-work
The Problem only seems to exist with the user_words_suffix and the user_patterns_suffix config variable. A workaround is to use user_words_file and user_patterns_file.
@juergenm I have used it, but it doesn't change result. Please check my comment: https://stackoverflow.com/a/59307421