Python installation tesserocr many pits

1. Install Tersseract

Related Links:

tesserocr GitHub:https//github.com/sirfz/tesserocr

tesserocr PyPI:https://pypi.python.org/pypi/tesserocr

tesseract Download: HTTP  :  //digi.bib.uni-mannheim.de/tesseract

tesseract GitHub:https//github.com/tesseract-ocr/tesseract

tesseract language packs: HTTPS : //github.com/tesseract-ocr/tessdata

tesseract Documents: HTTPS : //github.com/tesseract-ocr/tesseract/wiki/Documentation

next is fine

2. Install tesserocr and pillow modules

2.1tesserocr

I got the following error while installing

 

Later, the installation through whl was finally successful

whl installation package download link

Releases · simonflueckiger/tesserocr-windows_build · GitHub

Put the downloaded installation package in the python installation path

Pay special attention here, you need to match the appropriate version with tesseract

Choose the appropriate version to download Run pip3 install  tesserocr-2.2.2-cp36-cp36m-win_amd64.whl

The names in bold and italics are the downloaded files.

2.2 Install pillow

No problem, just run pip3 install pillow. If there is still a problem, you can also use whl to install

3 Reasons for errors when running pycharm

The following error occurred

Failed to init API, possibly an invalid tessdata path: C:\\

The solution is to copy the tessdata folder of C:\Program Files (x86)\Tesseract-OCR to the python installation path

Guess you like

Origin blog.csdn.net/weixin_40244676/article/details/102470216