evermeer/PassportScanner

Tesseract crashed: Failed loading language 'eng'

talalt opened this issue · 3 comments

Hi! When I try to use PassportScanner he crashes with that 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!
fatal error: unexpectedly found nil while unwrapping an Optional value

How can I fix that? Thanks!

hey @talalt did you fix this? If so, how? Thanks

you need a testdata folder in the root of your app which includes a language file.

Ah! Yes I see that in your instructions also now. Thanks for pointing that out.