【问题标题】:How to install tesseract for python on anaconda如何在 anaconda 上为 python 安装 tesseract
【发布时间】:2018-08-20 10:37:04
【问题描述】:

有人知道如何在 Anaconda 上安装 tesseract for python 吗?我有一个windows系统。 anaconda 网站给出了 linux 系统的安装:

conda install -c auto pytesseract 

windows系统需要做些改动吗?

【问题讨论】:

标签: python anaconda python-tesseract


【解决方案1】:

刚刚尝试进行 pip 安装,它似乎奏效了!

pip install pytesseract 

【讨论】:

    【解决方案2】:

    要在 Windows 上使用 conda 安装此软件包,请运行以下操作之一:

    conda install -c simonflueckiger tesserocr 
    conda install -c simonflueckiger/label/tesseract-4.0.0-master tesserocr 
    conda install -c simonflueckiger/label/tesseract-3.5.1 tesserocr
    

    【讨论】:

      【解决方案3】:

      ? 工作解决方案(?‍? 于 2019 年 6 月测试)

      • ?️‍♂️我在anaconda cloud上搜索过
      • ? 下载次数最多的版本(win64)安装命令:
      conda install -c mcs07 tesseract
      conda install -c jim-hart pytesseract
      

      【讨论】:

        【解决方案4】:

        如果想在 MacBook/OSX 上安装 tesseract,请使用 conda-forge 频道:

        conda install -c conda-forge tesseract
        

        要通过 pytesseract 导入它,您还必须安装 pytesseract:

        conda install -c conda-forge pytesseract
        

        并像这样使用它:

        import pytesseract
        import cv2 # For loading image
        
        img = cv2.imread('read_my_doc_image.jpg')
        text = pytesseract.image_to_string(
            img, config='-l eng --oem 1 --psm 6'
        )
        print(text)
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2017-09-11
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-07-30
          • 2023-03-23
          • 2017-08-19
          相关资源
          最近更新 更多