【问题标题】:After succesfully installing tesseract_ocr in Ubuntu it shows no mudule named tesseract_ocr在 Ubuntu 中成功安装 tesseract ocr 后,它显示没有名为 tesseract ocr 的模块
【发布时间】:2015-09-10 11:23:52
【问题描述】:
我通过Linux终端安装了Tesseract OCR,但是当我尝试在Python中导入时,出现了错误:
/usr/bin/python2.7 /home/web/Documents/pnt/ocr.py
回溯(最近一次通话最后一次):
文件“/home/web/Documents/pnt/ocr.py”,第 1 行,在
导入正方体
ImportError: 没有名为 tesseract 的模块
【问题讨论】:
标签:
ocr
pycharm
tesseract
python-tesseract
【解决方案1】:
检查您是否在系统上正确安装了 tesseract-ocr。首先尝试进入你的命令行:
tesseract
和/或
whereis tesseract-ocr
现在,下一步你需要一个 tesserect 的包装器,例如 pytesseract 或 python-tesseract,以便在 python 中导入和使用 ocr。