AI Agent Hub
Back to skills
MacOCR macOS Text Recognition icon

MacOCR macOS Text Recognition

Office Efficiency Updated 2026.08.29

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 Vision framework to recognize text in images, supporting common formats such as PNG, JPEG, TIFF, and BMP.
  • Language scope: Primarily targets Simplified Chinese zh-Hans, Traditional Chinese zh-Hant, and English en-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 code 1 for script-level checks.

Boundaries

  • Requires a macOS system with Vision framework support (macOS 10.15+).
  • Requires a local swift command 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.