TesseractNotFoundError: tesseract is not installed or it's not in your path
To get around this problem, install tesseract manually from
and before calling any API of pytesseract we call
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"and we are done! For example, consider the following picture called "plain_text.png" in the directory of our .py file:
we run
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe" text = pytesseract.image_to_string(image)and we get
No comments:
Post a Comment