I'm bumping into this error while my code is running the pytesseract works fine however I am not able to print out my value and it seems my anaconda is bugging out or something. I am able to get that txt is a string which is set to 1:20 as seen here :
Here's the python code I am trying to run :
from PIL import Image
import pytesseract
pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files/Tesseract-OCR/tesseract.exe'
tessdata_dir_config = '--tessdata-dir "C:/Program Files/Tesseract-OCR/tessdata"'
im = Image.open('Untitled.png')
txt = pytesseract.image_to_string(im, config=tessdata_dir_config)
print(txt)
However If I want to interact with this value (like printing it) it seems anaconda buggs out. It performs the code but does not print the value :
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…