$npx skillfedfor your agent

tesserocr

A simple, Pillow-friendly, Python wrapper around tesseract-ocr API using Cython

With conditionsPyPI GraphicsReleased Aug 2026562.5K downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — tesserocr-2.11.0-cp310-cp310-macosx_15_0_arm64.whl · tesserocr-2.11.0-cp310-cp310-macosx_15_0_x86_64.whl · tesserocr-2.11.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
v2.11.0 · released 2026-08-04 · Python >=3.9 · 1 runtime deps: cysignals

Yes, if you need OCR and can install system libraries. tesserocr is actively maintained, production-stable, has no known vulnerabilities, and offers genuine concurrency advantages over pure-Python OCR libraries. The medium install friction (external C++ dependencies) is the main trade-off; Windows users should use Conda or pre-built wheels to avoid compilation.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires libtesseract (>=3.04) and libleptonica (>=1.71) libraries installed on the system; on Linux/Ubuntu install via apt-get, on macOS via Homebrew, or use Conda on Windows.
  • Medium install friction due to compiled C++ dependencies.
  • Requires libtesseract (>=3.04) and libleptonica (>=1.71) to be installed separately on Linux/macOS, or pre-packaged wheels on Windows.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

last release 2026-08-04 (10 days) · last repo commit 2026-08-04 · 2,171 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 562,527 downloads/mo, #5,988 on PyPI

Verify before relying

pip install tesserocr

from tesserocr import PyTessBaseAPI

with PyTessBaseAPI() as api:
    api.SetImageFile('sample.jpg')
    print(api.GetUTF8Text())
  • Whether traineddata files are bundled or must be downloaded separately for language support
  • Performance characteristics when processing large batches of images
  • Compatibility with PyPy implementation beyond CPython
Same gist for agents: .md · .json

What it is and what it does

tesserocr is a Python wrapper around the Tesseract OCR engine, built with Cython to provide direct access to Tesseract's C++ API. It extracts text and metadata from images, supporting both file paths and Pillow Image objects. The package is designed for concurrent use with Python's threading module, releasing the GIL during image processing to enable true parallel execution.

The library exposes both high-level convenience functions (like `image_to_text()` and `file_to_text()`) and a lower-level API (`PyTessBaseAPI`) for advanced use cases such as component detection, orientation/script detection, and per-symbol confidence scores. It requires system libraries libtesseract and libleptonica to be installed separately on Unix-like systems, though Windows wheels bundle these dependencies.

Use it for

  • Batch processing scanned documents or photographs to extract searchable text for archival systems
  • Building concurrent image-to-text pipelines that leverage threading for high-throughput OCR workflows
  • Detecting document orientation and script language before applying language-specific OCR models
  • Extracting text regions with per-character confidence scores for quality control in document processing
  • Integrating OCR into data pipelines that already use Pillow for image manipulation

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need OCR and can install system libraries.

tesserocr is actively maintained, production-stable, has no known vulnerabilities, and offers genuine concurrency advantages over pure-Python OCR libraries. The medium install friction (external C++ dependencies) is the main trade-off; Windows users should use Conda or pre-built wheels to avoid compilation.

Install

tesserocr on PyPI

Before you install

Medium install friction due to compiled C++ dependencies. Requires libtesseract (>=3.04) and libleptonica (>=1.71) to be installed separately on Linux/macOS, or pre-packaged wheels on Windows. Package is actively maintained with recent releases and builds available for Python 3.9–3.14 across multiple platforms.

Requires libtesseract (>=3.04) and libleptonica (>=1.71) libraries installed on the system; on Linux/Ubuntu install via apt-get, on macOS via Homebrew, or use Conda on Windows.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install tesserocr

from tesserocr import PyTessBaseAPI

with PyTessBaseAPI() as api:
    api.SetImageFile('sample.jpg')
    print(api.GetUTF8Text())

Verify before relying

  • Whether traineddata files are bundled or must be downloaded separately for language support
  • Performance characteristics when processing large batches of images
  • Compatibility with PyPy implementation beyond CPython

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionMedium. Platform-specific wheel
Runtime dependencies
1 package
cysignals
MaintenanceActively maintained 10 days since the last release
Last repo commit
First released
Downloads562,527 / month, #5,988 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: POSIXProgramming Language :: CythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Multimedia :: Graphics :: Capture :: ScannersTopic :: Multimedia :: Graphics :: Graphics ConversionTopic :: Scientific/Engineering :: Image Recognition

Evidence: tesserocr-2.11.0-cp310-cp310-macosx_15_0_arm64.whl; tesserocr-2.11.0-cp310-cp310-macosx_15_0_x86_64.whl; tesserocr-2.11.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; tesserocr-2.11.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; tesserocr-2.11.0-cp310-cp310-musllinux_1_2_x86_64.whl; tesserocr-2.11.0-cp311-cp311-macosx_15_0_arm64.whl; tesserocr-2.11.0-cp311-cp311-macosx_15_0_x86_64.whl; tesserocr-2.11.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; tesserocr-2.11.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; tesserocr-2.11.0-cp311-cp311-musllinux_1_2_x86_64.whl; tesserocr-2.11.0-cp312-cp312-macosx_15_0_arm64.whl; tesserocr-2.11.0-cp312-cp312-macosx_15_0_x86_64.whl; tesserocr-2.11.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; tesserocr-2.11.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; tesserocr-2.11.0-cp312-cp312-musllinux_1_2_x86_64.whl; tesserocr-2.11.0-cp313-cp313-macosx_15_0_arm64.whl; tesserocr-2.11.0-cp313-cp313-macosx_15_0_x86_64.whl; tesserocr-2.11.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; tesserocr-2.11.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; tesserocr-2.11.0-cp313-cp313-musllinux_1_2_x86_64.whl

Tags

Capabilities
optical character recognition OCRextract text from imagestesseract python wrapperimage to text conversionconcurrent OCR processingpillow image recognitiondocument text extraction
Topics
ocrimage-processingconcurrent
PyPI keywords
Tesseracttesseract-ocrOCRoptical character recognitionPILPillowCython

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 › “image to text conversion”

  • tesserocrtesserocr wraps Tesseract's C++ OCR engine via Cython, extracting…
  • pytesseractPytesseract wraps Google's Tesseract-OCR engine to extract text from…
  • unstructured.pytesseractPython wrapper for Google's Tesseract OCR engine that extracts text…

Give your agent the search over MCP, or paste the wish link into any chat.

More Graphics packages

pillow Worth it
PyPI · Graphics · released Jul 2026

Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.

Install it if you need to work with images in Python—it is the de facto standard for this task.

MIT-CMUcompiled wheel · 3.10+
547.1Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

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.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
matplotlib-inline Worth it
PyPI · Graphics · released May 2026

Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.

BSD-3-Clausepure Python · 3.9+
130.5Mdownloads / mo
pymupdf Worth it
PyPI · Libraries · released Aug 2026

PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.

The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.

AGPLcompiled wheel · 3.10+
114.9Mdownloads / mo
pypdfium2 Worth it
PyPI · Libraries · released Aug 2026

pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.

Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.

permissive licensecompiled wheel · 3.6+
76.9Mdownloads / mo
altair Worth it
PyPI · Graphics · released Jun 2026

Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.

BSD-3-Clausepure Python · 3.10+
54.5Mdownloads / mo

See also pytesseract · unstructured.pytesseract · ocrmypdf · pyocr · keras-ocr · ocrmac · perceptron · easyocr · kreuzberg · ManimPango