Describe the bug
I am trying to use German language for text extraction from pdfs and hence copied 'deu.traineddata' into /opt/homebrew/share/tessdata, but still I receive the below error:
b'Error opening data file /opt/homebrew/share/tessdata/deu.traineddata\nPlease make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.\nFailed loading language \'deu\'\nTesseract couldn\'t load any languages!\nCould not initialize tesseract.\n'.
Please let me know if there is a possible solution to it.
Is there something like below in textract that can be used to set path explicitly:
tesseract.setDatapath("/usr/share/tessdata/");
Desktop (please complete the following information):
Describe the bug I am trying to use German language for text extraction from pdfs and hence copied 'deu.traineddata' into /opt/homebrew/share/tessdata, but still I receive the below error: b'Error opening data file /opt/homebrew/share/tessdata/deu.traineddata\nPlease make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.\nFailed loading language \'deu\'\nTesseract couldn\'t load any languages!\nCould not initialize tesseract.\n'. Please let me know if there is a possible solution to it. Is there something like below in textract that can be used to set path explicitly: tesseract.setDatapath("/usr/share/tessdata/");
Desktop (please complete the following information):