ocrmac
A python wrapper to extract text from images on a mac system. Uses the vision framework from Apple.
Decision gist · record as of 2026-08-14
Yes, if you are on macOS and need straightforward OCR without external dependencies. The package is permissively licensed, has low install friction, and leverages native macOS capabilities. The aging maintenance status (218 days since release) is not a blocker—the last commit was recent and the repository is active—but verify that your macOS version meets the 10.15+ requirement and that LiveText features require Sonoma if you need them.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires macOS 10.15 or later; pyobjc-framework-Vision is a compiled dependency that only installs on macOS.
- Low install friction with a pure-Python wheel and minimal dependencies.
- The package is aging (218 days since last release) but the repository remains active with recent maintenance work on build configuration and test infrastructure.
License · maintenance · safety
MIT license (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal legal constraints.
last release 2026-01-08 (218 days) · last repo commit 2026-01-08 · 537 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 84,987 downloads/mo, #13,962 on PyPI
Alternatives
Verify before relying
pip install ocrmac
from ocrmac import ocrmac
annotations = ocrmac.OCR('test.png').recognize()
print(annotations) # Returns list of (text, confidence, bounding_box) tuples- Whether LiveText framework support requires macOS Sonoma or later specifically
- Performance characteristics on Apple Silicon vs Intel Macs beyond the M3 Max benchmark
- Accuracy comparison with the Vision framework's fast vs accurate recognition levels on real-world documents
What it is and what it does
ocrmac wraps Apple's native Vision framework to perform optical character recognition directly on macOS, eliminating the need for external OCR engines like Tesseract or EasyOCR. You pass an image file path or PIL image object and receive a list of recognized text snippets, each with a confidence score and bounding box coordinates. The package supports two backends—Vision (available on macOS 10.15+) and LiveText (macOS Sonoma+)—and lets you tune recognition speed versus accuracy or specify language preferences for post-processing.
The main dependencies are Click (for CLI), pillow (for image handling), and pyobjc-framework-Vision (the bridge to Apple's native framework). It's designed for developers on macOS who want fast, built-in OCR without downloading large model files or managing GPU acceleration, though it only works on macOS systems.
Use it for
- Extract text from screenshots or documents on macOS without external OCR dependencies
- Batch process images to build searchable text indexes with confidence filtering
- Create annotated images showing recognized text regions via PIL or matplotlib output
- Implement language-specific OCR workflows by setting language preferences like 'en-US' or 'zh-Hans'
- Integrate native macOS OCR into Python workflows where speed and native integration matter more than cross-platform support
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are on macOS and need straightforward OCR without external dependencies.
The package is permissively licensed, has low install friction, and leverages native macOS capabilities. The aging maintenance status (218 days since release) is not a blocker—the last commit was recent and the repository is active—but verify that your macOS version meets the 10.15+ requirement and that LiveText features require Sonoma if you need them.
Install
ocrmac on PyPI
Before you install
Low install friction with a pure-Python wheel and minimal dependencies. The package is aging (218 days since last release) but the repository remains active with recent maintenance work on build configuration and test infrastructure.
Requires macOS 10.15 or later; pyobjc-framework-Vision is a compiled dependency that only installs on macOS.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal legal constraints.
Quickstart
pip install ocrmac
from ocrmac import ocrmac
annotations = ocrmac.OCR('test.png').recognize()
print(annotations) # Returns list of (text, confidence, bounding_box) tuples
Verify before relying
- Whether LiveText framework support requires macOS Sonoma or later specifically
- Performance characteristics on Apple Silicon vs Intel Macs beyond the M3 Max benchmark
- Accuracy comparison with the Vision framework's fast vs accurate recognition levels on real-world documents
Package facts
| License | MIT license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesClickpyobjc-framework-Visionpillow |
| Maintenance | Aging 218 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,987 / month, #13,962 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9 |
Evidence: ocrmac-1.0.1-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 › “mac ocr text extraction”
- ocrmacExtracts text from images on macOS using Apple's Vision framework,…
- python-doctrpython-doctr extracts and localizes text from documents and images…
- rapidocrRapidOCR extracts text from images using ONNX-based models optimized…
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 unstructured.pytesseract · pytesseract · easyocr · pyobjc-framework-Vision · pyocr · tesserocr · keras-ocr · python-doctr · img2table · cnstd