- This topic has 1 reply, 2 voices, and was last updated 4 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Fórum Reconhecimento de Textos com OCR e Python › Could not initialize tesseract
Aparece o seguinte erro:
TesseractError: (1, 'Error opening data file tessdata/por.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. Failed loading language \'por\' Tesseract couldn\'t load any languages! Could not initialize tesseract.') Vi em outro fórum que deram a opção de seguir sem ele mas tentei e os resultados não são tão precisos quanto
Olá Nycole, utilize essa linha abaixo na configuração do Tesseract:
!wget -O ./tessdata/por.traineddata https://github.com/tesseract-ocr/tessdata/blob/main/por.traineddata?raw=true
Fabio