Ola, podem me ajudar?
No modulo 2 aula 7. Não estou conseguindo executar o !
[Insira aqui a descrição dessa imagem para ajudar na acessibilidade] (https://cdn1.gnarususercontent.com.br/1/94088/d4460100-e030-474f-8e91-a4f906fc847c.png)
código abaixo.
print(pytesseract.image_to_osd(img))
Retorna o erro: TesseractError Traceback (most recent call last) in <cell line: 1>() ----> 1 print(pytesseract.image_to_osd(img))
3 frames /usr/local/lib/python3.10/dist-packages/pytesseract/pytesseract.py in run_tesseract(input_filename, output_filename_base, extension, lang, config, nice, timeout) 260 with timeout_manager(proc, timeout) as error_string: 261 if proc.returncode: --> 262 raise TesseractError(proc.returncode, get_errors(error_string)) 263 264
TesseractError: (1, 'Error opening data file /content/osd.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. Failed loading language 'osd' Tesseract couldn't load any languages! Could not initialize tesseract.')