In this article you will learn how to use pytesseract to recognize characters from a given image. This article is belong to optical character recognition (OCR) using tesseract python library.
tesseract is not installed or it's not in your PATH
Sometime when you are using pytesseract to recognize OCR you are facing below error.
pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH.
Steps to resolve TesseractNotFoundError
To resolve this issue follow below steps.
- Download and Install latest version of tesseract (https://github.com/UB-Mannheim/tesseract/wiki)
- py -m pip install pytesseract (Run this command to install pytesseract)
- Set environment variable (Add this path to environment variable "C:\Program Files\Tesseract-OCR")
- Set the tesseract path in the script before calling image_to_string() function
0 Comments