Failed loading language \'eng\' Tesseract couldn\'t load any languages! Could not initialize tesseract.

55 views
Skip to first unread message

Atef Chatty

unread,
Aug 2, 2022, 5:57:47 AMAug 2
to tesseract-ocr

Hi,
i write to a python code that use tesseract to extract English and German words. It works well. i tried to use it on Docker but i had this error:
Failed loading language 'eng' Tesseract couldn't load any languages! Could not initialize tesseract.
Failed loading language 'deu' Tesseract couldn't load any languages! Could not initialize tesseract.

this is what i use :
text = pytesseract.image_to_string(imm,config='--psm 11 --oem 1 --tessdata-dir "C:\Program Files\Tesseract-OCR\tessdata" ',lang='deu+eng')
in the requirments.txt i installed pytesseract and tesseract then i used this commad : RUN apt-get update && apt-get install tesseract-ocr -y
But it didnt work
Can you help me ?

Alejandro Nadal

unread,
Aug 2, 2022, 6:25:11 AMAug 2
to tesser...@googlegroups.com
Hi
I think you are using a Windows config on a linux docker. This might be the cause of your issue.
Let us know if this is the case.
Good luck
Alejandro

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/a68c21a3-aaf9-4489-a3f2-572f7d6e0b27n%40googlegroups.com.

Atef Chatty

unread,
Aug 2, 2022, 6:30:34 AMAug 2
to tesser...@googlegroups.com
Hi  Alejandro,
thank you for your reply. Yeah i use a Windows config on a linux docker.
What should i do to fix this ? 


Reply all
Reply to author
Forward
0 new messages