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

Tesseract will not load trained data

Open AdrianBinDC opened this issue 7 years ago • 6 comments

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.

screen shot 2017-10-16 at 4 12 32 pm

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!

AdrianBinDC avatar Oct 16 '17 20:10 AdrianBinDC

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

RolfHR avatar Oct 21 '17 20:10 RolfHR

Hi,

I have exactly the same problem at the moment :-/

frederik-jacques avatar Nov 07 '17 14:11 frederik-jacques

My project using Xcode 8.2.1 yields the same error. It seems that 4.0.0 isn't supported as #343 points out.

goranr avatar Nov 08 '17 05:11 goranr

That works :D thanks alot!

frederik-jacques avatar Nov 08 '17 06:11 frederik-jacques

Having the same issue. What's the fix?

RishabhTayal avatar Nov 13 '17 22:11 RishabhTayal