Skip to content

Commit 3f60e1f

Browse files
committed
updateing doc
1 parent 5223947 commit 3f60e1f

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Python-tesseract is a wrapper for google's Tesseract-OCR
55
( http://code.google.com/p/tesseract-ocr/ ). It is also useful as a
66
stand-alone invocation script to tesseract, as it can read all image types
77
supported by the Python Imaging Library, including jpeg, png, gif, bmp, tiff,
8-
and others, wheras tesseract-ocr by default only supports tiff and bmp.
8+
and others, whereas tesseract-ocr by default only supports tiff and bmp.
99
Additionally, if used as a script, Python-tesseract will print the recognized
1010
text in stead of writing it to a file. Support for confidence estimates and
1111
bounding box data is planned for future releases.
@@ -20,13 +20,23 @@ USAGE:
2020
```
2121

2222
INSTALLATION:
23+
24+
Prerequisites:
2325
* Python-tesseract requires python 2.5 or later.
2426
* You will need the Python Imaging Library (PIL). Under Debian/Ubuntu, this is
2527
the package "python-imaging".
2628
* Install google tesseract-ocr from http://code.google.com/p/tesseract-ocr/ .
2729
You must be able to invoke the tesseract command as "tesseract". If this
2830
isn't the case, for example because tesseract isn't in your PATH, you will
2931
have to change the "tesseract_cmd" variable at the top of 'tesseract.py'.
32+
33+
Installing via pip:
34+
See the [pytesseract package page](https://pypi.python.org/pypi/pytesseract)
35+
$> sudo pip install pytesseract
36+
37+
Installing from source:
38+
$> git clone git@github.com:madmaze/pytesseract.git
39+
$> sudo python setup.py install
3040

3141

3242
LICENSE:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name = "pytesseract",
6-
version = "0.1.4",
6+
version = "0.1.5",
77
author = "Samuel Hoffstaetter",
88
author_email="",
99
maintainer = "Matthias Lee",

src/pytesseract.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,40 @@
1414
1515
1616
USAGE:
17-
In python:
17+
```
1818
> import Image
1919
> import pytesseract
2020
> print pytesseract.image_to_string(Image.open('test.png'))
2121
> print pytesseract.image_to_string(Image.open('test-european.jpg'), lang='fra')
22-
22+
```
2323
2424
INSTALLATION:
25+
26+
Prerequisites:
2527
* Python-tesseract requires python 2.5 or later.
2628
* You will need the Python Imaging Library (PIL). Under Debian/Ubuntu, this is
2729
the package "python-imaging".
2830
* Install google tesseract-ocr from http://code.google.com/p/tesseract-ocr/ .
2931
You must be able to invoke the tesseract command as "tesseract". If this
3032
isn't the case, for example because tesseract isn't in your PATH, you will
3133
have to change the "tesseract_cmd" variable at the top of 'tesseract.py'.
34+
35+
Installing via pip:
36+
See the [pytesseract package page](https://pypi.python.org/pypi/pytesseract)
37+
$> sudo pip install pytesseract
3238
39+
Installing from source:
40+
$> git clone git@github.com:madmaze/pytesseract.git
41+
$> sudo python setup.py install
3342
34-
COPYRIGHT:
43+
44+
LICENSE:
3545
Python-tesseract is released under the GPL v3.
36-
Copyright (c) Samuel Hoffstaetter, 2009
37-
http://wiki.github.com/hoffstaetter/python-tesseract
46+
47+
CONTRIBUTERS:
48+
- Originally written by [Samuel Hoffstaetter](https://github.com/hoffstaetter)
49+
- [Juarez Bochi](https://github.com/jbochi)
50+
- [Matthias Lee](https://github.com/madmaze)
3851
3952
'''
4053

0 commit comments

Comments
 (0)