Tesseract-OCR-iOS icon indicating copy to clipboard operation
Tesseract-OCR-iOS copied to clipboard

User-Words file not loaded: Error: failed to load user-words

Open juergenm opened this issue 5 years ago • 5 comments

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

juergenm avatar Dec 04 '19 10:12 juergenm

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 👍

hamchapman avatar Dec 04 '19 10:12 hamchapman

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)
...

juergenm avatar Dec 04 '19 11:12 juergenm

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

astrung avatar Dec 12 '19 14:12 astrung

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 avatar Dec 13 '19 12:12 juergenm

@juergenm I have used it, but it doesn't change result. Please check my comment: https://stackoverflow.com/a/59307421

astrung avatar Dec 16 '19 01:12 astrung