unstructured.pytesseract
Python-tesseract is a python wrapper for Google's Tesseract-OCR
Decision gist · record as of 2026-08-14
Yes, if you need OCR capabilities in Python and are willing to install the external Tesseract engine. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and provides a clean Python interface to a mature OCR tool. Install friction is low and it supports Python 3.8, 3.9, 3.10, 3.11, and 3.12. Not suitable if you cannot install system-level dependencies or need a pure-Python OCR solution.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 a wrapper that calls the tesseract executable.
- You may need to set pytesseract.pytesseract.tesseract_cmd to the full path if tesseract is not in your PATH.
- Low install friction with only two runtime dependencies (packaging and Pillow).
License · maintenance · safety
Apache License 2.0 (permissive) — Apache License 2.0 is permissive, allowing use in commercial and proprietary projects with minimal restrictions beyond attribution and liability disclaimers.
last release 2025-03-05 (527 days) · last repo commit 2026-07-13 · 6,381 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 724,414 downloads/mo, #5,223 on PyPI
Alternatives
Verify before relying
pip install unstructured.pytesseract
import pytesseract
text = pytesseract.image_to_string('test.png')
print(text)- Whether the package is actively maintained by the original author or has transferred to community maintainers
- Performance characteristics for large-scale batch OCR processing
- Accuracy benchmarks across different image types and languages
What it is and what it does
Unstructured.pytesseract is a Python wrapper around Google's Tesseract OCR engine that recognizes and extracts text from images. It handles multiple image formats including jpeg, png, gif, bmp, and tiff, and can work with file paths or array objects. The package supports multilingual OCR, language specification, and timeout controls for long-running operations.
Beyond simple text extraction, it provides structured output modes including bounding box coordinates, confidence scores, orientation detection, and can generate searchable PDFs or HOCR markup. It supports batch processing and allows fine-grained control over Tesseract parameters through config strings. The wrapper requires the external Tesseract OCR engine to be installed separately on your system.
Use it for
- Extract text from scanned documents or photographs for indexing or archival purposes
- Generate searchable PDFs from image-based documents for easier retrieval
- Detect and extract text in non-English languages by specifying language codes
- Obtain character-level bounding boxes for layout analysis or document structure reconstruction
- Batch process multiple images to extract text with a single tesseract invocation
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need OCR capabilities in Python and are willing to install the external Tesseract engine.
The package is actively maintained, has no known vulnerabilities, uses a permissive license, and provides a clean Python interface to a mature OCR tool. Install friction is low and it supports Python 3.8, 3.9, 3.10, 3.11, and 3.12. Not suitable if you cannot install system-level dependencies or need a pure-Python OCR solution.
Install
unstructured-pytesseract on PyPI
Before you install
Low install friction with only two runtime dependencies (packaging and Pillow). Active maintenance with recent commits and no known vulnerabilities. Requires the external Tesseract OCR engine to be installed separately on the system.
Google's Tesseract OCR engine must be installed separately on your system; pytesseract is a wrapper that calls the tesseract executable. You may need to set pytesseract.pytesseract.tesseract_cmd to the full path if tesseract is not in your PATH.
License in practice
Apache License 2.0 is permissive, allowing use in commercial and proprietary projects with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install unstructured.pytesseract
import pytesseract
text = pytesseract.image_to_string('test.png')
print(text)
Verify before relying
- Whether the package is actively maintained by the original author or has transferred to community maintainers
- Performance characteristics for large-scale batch OCR processing
- Accuracy benchmarks across different image types and languages
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 527 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 724,414 / month, #5,223 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: unstructured.pytesseract-0.3.15-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 › “tesseract wrapper python”
- unstructured.pytesseractPython wrapper for Google's Tesseract OCR engine that extracts text…
- tesserocrtesserocr wraps Tesseract's C++ OCR engine via Cython, extracting…
- pyocrPyOCR wraps multiple OCR engines (Tesseract, Cuneiform, libtesseract)…
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 ocrmac · ocrmypdf · pyocr · pytesseract · tesserocr · img2table · tesseract · chunkr-ai · keras-ocr · python-doctr