How to install tesserocr on windows?

前端 未结 4 1628
离开以前
离开以前 2021-01-12 13:44

I downloaded executable file of tesseract-OCR and installed it. On the other hand, I also downloaded a zipfile of leptonica from http://www.leptonica.com/download.html. It i

相关标签:
4条回答
  • 2021-01-12 13:55

    This method works for me perfectly: Use Anaconda to install TesserOCR in an environment named OCR

    Install Anaconda for Windows from here
    
    Open Anaconda Prompt:
    
    conda create -n OCR python=2.7
    
    activate OCR
    
    You should install Anaconda and tesserac
    

    https://www.anaconda.com/distribution/#download-section and in the prompt command write

    conda install -c simonflueckiger tesserocr
    
    conda install -c simonflueckiger/label/tesseract-4.0.0-master tesserocr
    
    0 讨论(0)
  • 2021-01-12 13:57

    Use Anaconda to install TesserOCR in an environment named OCR

    1. Install Anaconda for Windows from here
    2. Open Anaconda Prompt:

      conda create -n OCR python=3.6

      activate OCR

    3. For tesseract 3.5.1 (stable):

      conda install -c simonflueckiger tesserocr

      OR for tesseract 4.0.0 (experimental):

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

      OR download the wheel file matching your Windows platform and Python installation from here and install it via:

      pip install <path_to_your_wheel_file>

    0 讨论(0)
  • 2021-01-12 13:57

    I know it is too late for you but it might help others.

    Installation of leptonica will not be a complete solution at all in order to remove error while installing tesseract-ocr. After the installation of tesseract using windows installer available here, you should install the python wrapper as:

    pip install pytesseract
    

    Last but not least, you should also set the tesseract path in your script after importing pytesseract library as below (Please do not forget that installation path might be modified in your case!):

    pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'
    
    0 讨论(0)
  • 2021-01-12 14:07

    Basically,To install any pacakge on windows , go to LIBS location and run the command

     "py -3.4 -m pip install SomePackage"
    

    for tesseract either follow here : http://emop.tamu.edu/Installing-Tesseract-Windows8

    OR

    Download set up from here ( https://pypi.python.org/pypi/pytesseract) and double click on set up. Hope it helps.

    0 讨论(0)
提交回复
热议问题