Skip to main content

Image-to-text Tesseract command line wrapper.

Project description

# PILtesseract Simple Tesseract wrapper for converting PIL Images to text.

Warning: PILtesseract is intended to only work with tesseract 3.03+, one awesome feature added in 3.03 is the ability to pipe images via stdin, PILtesseract utilizes this feature.

Here is a simple example:

>>> from PIL import Image
>>> from piltesseract import get_text_from_image
>>> image = Image.open('quickfox.png')
>>> get_text_from_image(image)
'The quick brown fox jumps over the lazy dog'

See more advanced examples. See recipes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

piltesseract-0.0.2.zip (8.8 kB view hashes)

Uploaded Source

Built Distribution

piltesseract-0.0.2-py2.py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page