Home Forums Fórum Reconhecimento de Textos com OCR e Python Could not initialize tesseract

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31682

    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
    #31683
    Fábio Spak
    Participant

      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

    Viewing 2 posts - 1 through 2 (of 2 total)
    • You must be logged in to reply to this topic.