pytesseract 使用
- pip install pytesseract
- 在识别图片时会出现如下报错:
# error message
pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information.
该报错是由于本机没有安装 tesseract
导致,其实 pytesseract
是在 tesseract
基础上的封装底层实际调用的还是 tesseract
因此需要在本机安装 tesseract