Tesseract-OCR-iOS
Tesseract-OCR-iOS copied to clipboard
Tesseract will not load trained data
I installed Tesseract on an iOS11 project and I'm using Xcode 9. I've followed the instructions to a T, but I cannot get Tesseract to see my trained data file.

I imported it as a reference, per the instructions. I've tried with vanilla eng files and best eng files found on Google. Neither works. I get the following error:
Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. Failed loading language 'eng' Tesseract couldn't load any languages!
Hi
I have checked the build and it did not include my referenced folder (tessdata) unless i added it to the copy bundle resources under build phases. This however only moved the problem to another error
actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES:Error:Assert failed:in file tessdatamanager.cpp, line 53
I have tried, the training data for fast, best and legacy 4.0.0, please comment if you find the solution to this.
Kind regards
Hi,
I have exactly the same problem at the moment :-/
My project using Xcode 8.2.1 yields the same error. It seems that 4.0.0 isn't supported as #343 points out.
That works :D thanks alot!
Having the same issue. What's the fix?