gali8 / Tesseract-OCR-iOS

Tesseract OCR iOS is a Framework for iOS7+, compiled also for armv7s and arm64.
http://www.nexor.it
MIT License
4.22k stars 949 forks source link

Tesseract will not load trained data #349

Open AdrianBinDC opened 7 years ago

AdrianBinDC commented 7 years ago

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!

RolfHR commented 7 years ago

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_numentries <= 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

frederik-jacques commented 7 years ago

Hi,

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

goranr commented 7 years ago

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

frederik-jacques commented 7 years ago

That works :D thanks alot!

RishabhTayal commented 7 years ago

Having the same issue. What's the fix?

goranr commented 7 years ago

Use the Data Files for Version 3.04/3.05.