image-to-text
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "image-to-text" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-883c3a98ae1145438b18575bb5d459f956a39850fcb2333de33e2db11ba82aa9. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Use vision AI (OCR) to extract text and structured data from images. Suited for reading text from screenshots, extracting data from scanned documents, and converting table, form, or chart images into structured text.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
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
- The image is passed to Tesseract.js for optical character recognition
- Tesseract segments the image into lines and words
- 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 toeng). 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.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 OCR 图像转文本功能,解决用户从截图、扫描文档中提取文本的实际需求
- 适用场景明确且实用,包括 UI 文案提取、多语言文档处理等
Highlights
- 触发词精准完整,覆盖 image-to-text、OCR、text extraction 等关键词
- description 位置正确且内容完整,边界清晰不易误触
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档中未设置显式的 When to Use 章节,但 Overview 部分已涵盖使用场景
Recommendation: 建议在 Overview 后增加显式的 When to Use 章节以提升可读性
Highlights
- Phase/步骤清晰,包含完整的三步执行流程
- 提供两个端到端示例(英文截图 + 法文发票),覆盖不同使用场景
- frontmatter 完整,包含必要的元数据信息
Highlights
- 使用业界标准 Tesseract.js 引擎,工具来源可靠
- 参数设计合理,必填项和可选参数明确
- 覆盖主要异常情况(首次运行慢、图像质量影响等)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.