evermeer / PassportScanner

Scan the MRZ code of a passport and extract the firstname, lastname, passport number, nationality, date of birth, expiration date and personal numer.
BSD 3-Clause "New" or "Revised" License
457 stars 101 forks source link

Tesseract crashed: Failed loading language 'eng' #12

Closed talalt closed 7 years ago

talalt commented 7 years ago

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!

harryblam commented 6 years ago

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

evermeer commented 6 years ago

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

harryblam commented 6 years ago

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