Skip to content

Commit e906023

Browse files
committed
edit README
1 parent 2579555 commit e906023

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Python-tesseract is an optical character recognition (OCR) tool for python.
22
That 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+
46
Python-tesseract is a wrapper for google's Tesseract-OCR
57
( http://code.google.com/p/tesseract-ocr/ ). It is also useful as a
68
stand-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

1416
USAGE:
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:
2429
Prerequisites:
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

0 commit comments

Comments
 (0)