我尝试在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?
发布于 2018-09-23 15:41:08
您可以使用以下链接下载tesseract-ocr安装程序,
然后,在值为C:\Program Files (x86)\ tesseract -OCR\tesseract.exe的环境变量中添加名为Tesseract的新变量
https://stackoverflow.com/questions/50655738
复制相似问题