$npx skillfedfor your agent

pytesseract

Python-tesseract is a python wrapper for Google's Tesseract-OCR

Worth itPyPI Text ProcessingReleased Aug 202424.7M downloads / moApache License 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytesseract-0.3.13-py3-none-any.whl
v0.3.13 · released 2024-08-16 · Python >=3.8 · 2 runtime deps: packaging, Pillow

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

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
Same gist for agents: .md · .json

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.

Worth 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

LicenseApache License 2.0 permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
packagingPillow
MaintenanceActively maintained 728 days since the last release
Last repo commit
First released
Downloads24,688,706 / month, #915 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
ocr text extraction from imagesoptical character recognition pythontesseract wrapperimage to text conversionmultilingual ocrextract text from imagesbounding box ocr
Topics
ocrimage-processingtesseract-wrapper
PyPI keywords
python-tesseractOCRPython

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

regex Worth it
PyPI · Python Modules · released Jul 2026

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.

Apache-2.0 AND CNRI-Pythoncompiled wheel · 3.10+
437.7Mdownloads / mo
pyparsing Worth it
PyPI · Text Processing · released Jan 2026

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.

MITpure Python · 3.9+
412.7Mdownloads / 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
docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
RapidFuzz Worth it
PyPI · Text Processing · released Apr 2026

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.

MITcompiled wheel · 3.10+
184.2Mdownloads / mo
tinycss2 Worth it
PyPI · Text Processing · released Nov 2025

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.

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

See also pyocr · tesserocr · unstructured.pytesseract · ocrmac · keras-ocr · ocrmypdf · img2table · tesseract · easyocr · python-doctr