【问题标题】: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。

    【讨论】:

      猜你喜欢
      • 2018-02-25
      • 2018-11-26
      • 2014-07-10
      • 2018-07-30
      • 1970-01-01
      • 2019-03-24
      • 2015-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多