openpaperwork / pyocr

A Python wrapper for Tesseract and Cuneiform -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/pyocr
931 stars 152 forks source link

No OCR tool found #72

Closed AdnanMuhib closed 6 years ago

AdnanMuhib commented 6 years ago

Hi, I have tried installing PyTesseract and Pyocr but there are no available tools . Kindly see the Windows Shell output below

PS C:\WINDOWS\system32> pip install pyocr --ignore-installed
Collecting pyocr
Collecting six (from pyocr)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting Pillow (from pyocr)
  Using cached Pillow-4.2.1-cp27-cp27m-win_amd64.whl
Collecting olefile (from Pillow->pyocr)
Installing collected packages: six, olefile, Pillow, pyocr
Successfully installed Pillow-4.2.1 olefile-0.44 pyocr-0.4.7 six-1.10.0
PS C:\WINDOWS\system32> pip install pytesseract --ignore-installed
Collecting pytesseract
Collecting Pillow (from pytesseract)
  Using cached Pillow-4.2.1-cp27-cp27m-win_amd64.whl
Collecting olefile (from Pillow->pytesseract)
Installing collected packages: olefile, Pillow, pytesseract
Successfully installed Pillow-4.2.1 olefile-0.44 pytesseract-0.1.7
PS C:\WINDOWS\system32> python
Python 2.7.12 |Anaconda custom (64-bit)| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> from PIL import Image
>>> import pyocr
>>> import pyocr.builders
>>> import pytesseract
>>> tools = pyocr.get_available_tools()
>>> tools
[]
>>> print(tools)
[]
jflesch commented 6 years ago

You must install Tesseract by yourself, and in must be in your PATH.

jflesch commented 6 years ago

https://github.com/tesseract-ocr/tesseract/wiki#windows

AdnanMuhib commented 6 years ago

Pytesseract doesn't works?

AdnanMuhib commented 6 years ago

I had installed tesseract Binary but didn't added Environment Variables. Now Adding those it worked. Thanks a Lot jflesch. Excellent work. environment_variables added tesseract installed