我正在尝试在 Python 中使用 pytesseract,但我总是遇到以下错误:
raise TesseractNotFoundError()
pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path
但是,我的系统上安装了 pytesseract 和 Tesseract。
产生此错误的示例代码:
import cv2
import pytesseract
img = cv2.imread('1d.png')
print(pytesseract.image_to_string(img))
如何解决这个 TesseractNotFoundError?