MacOCR macOS Text Recognition
Paste the following prompt into your AI chat to install this skill:
Please install @user_9a66f56b/macos-ocr according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
When working with screenshots, photos, scanned documents, or receipts on macOS, a common task is extracting text from an image and feeding it into an editor, spreadsheet, or shell script. Browser-based OCR often depends on extra model services, while MacOCR relies directly on system capabilities, reducing cross-platform components and network dependencies.
How it works
- Core capability: Uses the native macOS
Visionframework to recognize text in images, supporting common formats such asPNG,JPEG,TIFF, andBMP. - Language scope: Primarily targets Simplified Chinese
zh-Hans, Traditional Chinesezh-Hant, and Englishen-US. - Output contract: Writes recognized text block by block to
stdout, which is easy to pipe into shell workflows; if no text is recognized, the output is empty. - Error handling: When an image cannot be loaded or recognition fails, error messages go to
stderr, and the process exits with code1for script-level checks.
Boundaries
- Requires a macOS system with Vision framework support (
macOS 10.15+). - Requires a local
swiftcommand to be available. - It is suited for local image text extraction, not remote files, batch service workloads, or languages beyond the supported Chinese and English sets.
Use Cases
- On a macOS terminal, convert an error screenshot into copyable text and paste it into a bug report.
- Export a PDF page as PNG, then extract the receipt amount, date, and merchant name.
- Turn a scanned invoice photo into text blocks and copy each line into a spreadsheet for reconciliation.
- Read field values from a UI screenshot on macOS and pass them to an automation script for logging.
Best For
- Frontend engineers on macOS who need to extract error text from UI screenshots into tickets.
- Finance assistants who process invoices, receipts, and scanned documents and need amount and date fields as text.
- Operations engineers writing local automation scripts who want to read field values from macOS screenshots for logs.
- Legal assistants working with scanned contract pages on Mac who need to extract clause text for later editing.
Related Skills
Convert teaching schedules from talent development plan PDFs into structured Excel files, with cross-page tables, merged cells, multi-semester course splitting, major metadata extraction, and batch output.
Turn post-meeting text into bilingual minutes, preserving structure and consistent terminology.
Interprets tender files, generates bid docs, and checks compliance via the Bailian API.
Create, repair, and recalculate xlsx, xlsm, csv, or tsv workbooks with formula-safe edits, validation, and recalculation.