--- id: pyocr version: "0.8.5" license: GPL-3.0-or-later license_treatment: copyleft maintenance: dormant --- # pyocr — A Python wrapper for OCR engines (Tesseract, Cuneiform, etc) License: copyleft · Maintenance: dormant · Downloads: 77.4K/mo ## What it is and what it does PyOCR is a Python wrapper that provides a unified interface to multiple OCR engines—Tesseract, libtesseract, and Cuneiform—allowing you to extract text and spatial information from images without writing engine-specific code. It handles image input through Pillow, supporting all formats Pillow supports (jpeg, png, gif, bmp, tiff and others), and returns results in multiple formats: plain text strings, word or line bounding boxes with pixel coordinates, or hOCR markup for structured document representation. The package is designed for straightforward OCR workflows: detect available engines on the system, choose one, specify a language, and call image_to_string() with your image and desired output builder. It also supports orientation detection and digit-only recognition (Tesseract and libtesseract only) and can generate PDF files from images. However, the project is dormant—last updated 2023-09-17—so it receives no active maintenance, and compatibility with the latest OCR engine versions or Python releases is unverified. Use it for: - Extract text from scanned documents or photographs for indexing or archival - Build a document digitization pipeline that converts images to searchable text or hOCR - Detect and correct page orientation in batch OCR workflows - Extract structured data (word positions, confidence scores) for layout analysis or form processing - Generate searchable PDF files from image scans using libtesseract ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PyOCR wraps multiple OCR engines (Tesseract, Cuneiform, libtesseract) to extract text and spatial data from images in Python, supporting multiple output formats including plain text, bounding boxes, and hOCR. Yes, if you need a stable, lightweight OCR wrapper and have an OCR engine already installed. The low install friction and lack of vulnerabilities make it straightforward to add to a project. However, the dormant maintenance status means you should verify compatibility with your target OCR engine version and Python version before committing to it in new projects. The GPL-3.0-or-later license is a hard blocker for proprietary software. ## Install pip install pyocr uv add pyocr poetry add pyocr ## Installing pyocr Before you install: Low install friction with a single runtime dependency (Pillow). Maintenance is dormant—last release was in 2023-09-17—so expect no active bug fixes or feature updates, though the package remains functional for stable OCR engine backends. License in practice: Licensed under GPL-3.0-or-later (copyleft). Any derivative work or distribution must also be open-source under a compatible GPL license, which may restrict use in proprietary or closed-source projects. Quickstart: pip install pyocr import pyocr import pyocr.builders tools = pyocr.get_available_tools() if tools: tool = tools[0] txt = tool.image_to_string( Image.open('test.png'), builder=pyocr.builders.TextBuilder() ) Requires an external OCR engine (Tesseract, libtesseract, or Cuneiform) to be installed and available on the system; PyOCR is a wrapper only and will not function without one. Verify before relying: - Current compatibility with modern Python versions (3.4+ stated in description, but dormant since 2023) - Compatibility with recent Tesseract or libtesseract versions - Whether Windows and macOS support (noted as uncertain in description) has improved - Whether Image.open() usage requires explicit Pillow import in user code ## Package facts - License: GPL-3.0-or-later (copyleft) - Python support: unspecified - Install friction: low - Maintenance: dormant - Downloads: 77.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags ocr text extraction python, tesseract wrapper python, image to text recognition, optical character recognition library, extract text from images, ocr bounding boxes, document text recognition, ocr, document-processing, image-recognition [View on SkillFed](https://skillfed.io/packages/pyocr) · [View on PyPI](https://pypi.org/project/pyocr/)