image-to-text

使用视觉 AI(OCR)从图像中提取文本和结构化数据。适用于从屏幕截图读取文本、从扫描文档提取数据,以及将表格、表单或图表图像转换为结构化文本的场景。

仓库最近推送
GitHub Stars
219
Forks
38
Issues / PRs
7

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "image-to-text":https://skillpi.com/zh/skills/deepskill-883c3a98ae1145438b18575bb5d459f956a39850fcb2333de33e2db11ba82aa9。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

使用视觉 AI(OCR)从图像中提取文本和结构化数据。适用于从屏幕截图读取文本、从扫描文档提取数据,以及将表格、表单或图表图像转换为结构化文本的场景。

0 下载

介绍来源: third_party · TerminalSkills · 1.0.0 参考来源

SkillPi 解读

实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: image-to-text
description: >-
  Extract text and structured data from images using Vision AI (OCR). Use when: reading
  text from screenshots, extracting data from scanned documents, converting images of
  tables/forms/charts to structured text.
license: MIT
compatibility: "Node.js 18+"
metadata:
  author: terminal-skills
  version: "1.0.0"
  category: data-ai
  tags: [ocr, image-to-text, vision-ai, text-extraction, document]

Image to Text

Overview

Extract all readable text from an image using OCR (Tesseract). Returns the full text content along with word-level bounding boxes and confidence scores.

  • Reading text content from a screenshot or design mockup
  • Extracting UI copy (labels, buttons, headings) so you don't have to retype it
  • Getting text positions and bounding boxes from a design image

Instructions

  1. The image is passed to Tesseract.js for optical character recognition
  2. Tesseract segments the image into lines and words
  3. Returns the full text plus word-level details (position, confidence)

Run the extraction script:

bash <skill-path>/scripts/image-to-text.sh <image-path> [language]

Arguments:

  • image-path — Path to the image file (required)
  • language — OCR language code (optional, defaults to eng). Common: eng, fra, deu, spa, chi_sim, jpn

The script outputs JSON with extracted text and metadata:

{
  "text": "Request work\nSuggestions\nPlumbing\nHVAC\nCleaning\nElectrical",
  "confidence": 87.4,
  "words": [
    {
      "text": "Request",
      "confidence": 94.2,
      "bbox": { "x0": 142, "y0": 180, "x1": 268, "y1": 204 }
    }
  ],
  "lines": [
    {
      "text": "Request work",
      "confidence": 95.1,
      "bbox": { "x0": 142, "y0": 180, "x1": 332, "y1": 204 }
    }
  ]
}

After extracting text, present the content grouped by lines and use the extracted text directly when implementing UI copy from a design.

Examples

Example 1: Extract text from a mobile app screenshot

bash <skill-path>/scripts/image-to-text.sh ./screenshot.png

Output:

Extracted text (87.4% confidence):

  Request work
  Suggestions
  Plumbing
  HVAC
  Cleaning
  Electrical

Found 6 lines, 6 words.

Example 2: Extract French text from a scanned invoice

bash <skill-path>/scripts/image-to-text.sh ./invoice-scan.png fra

Tesseract uses the French language model to correctly recognize accented characters and French-specific formatting. The extracted text can then be parsed for invoice fields like total, date, and line items.

Guidelines

  • Tesseract works best with clean, high-contrast text. Screenshots of rendered UI work well. Photos of text at angles or with noise may produce poor results.
  • Pass the correct language code as the second argument when processing non-English text. Tesseract needs the right language model to recognize characters.
  • First run is slow because Tesseract downloads language data (~4MB for English). Subsequent runs are faster.
  • For structured documents (tables, forms), post-process the extracted text to parse it into JSON or CSV format.

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值82/100

亮点

  • 提供 OCR 图像转文本功能,解决用户从截图、扫描文档中提取文本的实际需求
  • 适用场景明确且实用,包括 UI 文案提取、多语言文档处理等
触发精准88/100

亮点

  • 触发词精准完整,覆盖 image-to-text、OCR、text extraction 等关键词
  • description 位置正确且内容完整,边界清晰不易误触
结构规范92/100

待提升项

  • 缺少 When to Use 显式章节 原报告严重程度:轻微

    文档中未设置显式的 When to Use 章节,但 Overview 部分已涵盖使用场景

    改进建议:建议在 Overview 后增加显式的 When to Use 章节以提升可读性

亮点

  • Phase/步骤清晰,包含完整的三步执行流程
  • 提供两个端到端示例(英文截图 + 法文发票),覆盖不同使用场景
  • frontmatter 完整,包含必要的元数据信息
执行可靠85/100

亮点

  • 使用业界标准 Tesseract.js 引擎,工具来源可靠
  • 参数设计合理,必填项和可选参数明确
  • 覆盖主要异常情况(首次运行慢、图像质量影响等)
证据可验 (前四项均值)87/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。