File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11Python-tesseract is an optical character recognition (OCR) tool for python.
22That is, it will recognize and "read" the text embedded in images.
33
4+ This pytesseract version maintained by tpircsboy is compatible with Python 3 and Python 2
5+
46Python-tesseract is a wrapper for google's Tesseract-OCR
57( http://code.google.com/p/tesseract-ocr/ ). It is also useful as a
68stand-alone invocation script to tesseract, as it can read all image types
@@ -13,7 +15,10 @@ bounding box data is planned for future releases.
1315
1416USAGE:
1517```
16- > import Image
18+ > try:
19+ > from PIL import Image
20+ > except ImportError:
21+ > import Image
1722 > import pytesseract
1823 > print pytesseract.image_to_string(Image.open('test.png'))
1924 > print pytesseract.image_to_string(Image.open('test-european.jpg'), lang='fra')
@@ -24,7 +29,7 @@ INSTALLATION:
2429Prerequisites:
2530* Python-tesseract requires python 2.5 or later.
2631* You will need the Python Imaging Library (PIL). Under Debian/Ubuntu, this is
27- the package "python-imaging".
32+ the package "python-imaging" for Python 2. Use pip3 install Pillow for Python 3 .
2833* Install google tesseract-ocr from http://code.google.com/p/tesseract-ocr/ .
2934 You must be able to invoke the tesseract command as "tesseract". If this
3035 isn't the case, for example because tesseract isn't in your PATH, you will
You can’t perform that action at this time.
0 commit comments