pytesseract
Python-tesseract is a python wrapper for Google's Tesseract-OCR
Decision gist · record as of 2026-08-14
Yes. Pytesseract is a mature, actively maintained wrapper with low install friction, permissive licensing, and no known vulnerabilities. It is the standard Python interface to Tesseract-OCR and suitable for production use. The main constraint is the external Tesseract system dependency, which must be installed separately—this is not a Python-only package. If you need OCR in Python and can satisfy the Tesseract prerequisite, this is the right choice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Google's Tesseract-OCR engine must be installed separately on your system; pytesseract is only a Python wrapper.
- You may also need to set pytesseract.pytesseract.tesseract_cmd to the full path of the tesseract executable if it is not in your PATH.
- Low install friction with only two runtime dependencies (Pillow and packaging).
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution.
last release 2024-08-16 (728 days) · last repo commit 2026-07-13 · 6,381 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 24,688,706 downloads/mo, #915 on PyPI
Alternatives
Verify before relying
pip install pytesseract
import pytesseract
text = pytesseract.image_to_string('test.png')
print(text)- Performance characteristics (speed, memory usage) for large-scale batch processing or high-resolution images
- Accuracy rates for different languages and image types compared to other OCR solutions
- Whether the package handles scanned documents with skew, noise, or poor quality automatically
What it is and what it does
Pytesseract is a Python wrapper around Google's Tesseract-OCR engine that extracts text from images. It handles a wide range of image formats (JPEG, PNG, GIF, BMP, TIFF, and others) and can recognize text in multiple languages. The package works with image objects, NumPy arrays, or file paths, making it flexible for different image sources.
Beyond simple text extraction, pytesseract offers multiple output modes: bounding boxes for character positions, detailed data with confidence scores and line numbers, orientation and script detection, searchable PDFs, HOCR markup, and ALTO XML. It supports custom Tesseract configuration flags for fine-tuning OCR parameters, language specification, and timeout control. The package can also process multiple images in batch and reduce redundant Tesseract calls by retrieving multiple output formats in a single invocation.
Use it for
- Extract text from scanned documents or photos of printed material for digitization or archival
- Recognize text in multiple languages from images by specifying language codes
- Generate searchable PDFs from image documents using the PDF or HOCR output formats
- Extract character bounding boxes and confidence scores for document layout analysis
- Batch process collections of images to extract text with timeout protection against hung jobs
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Pytesseract is a mature, actively maintained wrapper with low install friction, permissive licensing, and no known vulnerabilities. It is the standard Python interface to Tesseract-OCR and suitable for production use. The main constraint is the external Tesseract system dependency, which must be installed separately—this is not a Python-only package. If you need OCR in Python and can satisfy the Tesseract prerequisite, this is the right choice.
Install
pytesseract on PyPI
Before you install
Low install friction with only two runtime dependencies (Pillow and packaging). The package is actively maintained with a recent commit on 2026-07-13 and has 6381 repository stars, indicating stable community adoption.
Google's Tesseract-OCR engine must be installed separately on your system; pytesseract is only a Python wrapper. You may also need to set pytesseract.pytesseract.tesseract_cmd to the full path of the tesseract executable if it is not in your PATH.
License in practice
Licensed under Apache License 2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution.
Quickstart
pip install pytesseract
import pytesseract
text = pytesseract.image_to_string('test.png')
print(text)
Verify before relying
- Performance characteristics (speed, memory usage) for large-scale batch processing or high-resolution images
- Accuracy rates for different languages and image types compared to other OCR solutions
- Whether the package handles scanned documents with skew, noise, or poor quality automatically
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespackagingPillow |
| Maintenance | Actively maintained 728 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 24,688,706 / month, #915 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: pytesseract-0.3.13-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “extract text from images”
- pytesseractPytesseract wraps Google's Tesseract-OCR engine to extract text from…
- docx2txtExtracts text, headers, footers, hyperlinks, and images from…
- keras-ocrkeras-ocr detects and recognizes text in images using pre-trained…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also pyocr · tesserocr · unstructured.pytesseract · ocrmac · keras-ocr · ocrmypdf · img2table · tesseract · easyocr · python-doctr