image-ocr-new
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "image-ocr-new":https://skillpi.com/zh/skills/deepskill-dc397bde1a1761479b7d9f4cea44b10b68220f9e11333da84a429d5bcdc8a95d。安装前核对上游来源和版本:https://skillhub.cn/skills/user_f80dbe1a/image-ocr-new。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
图像文字识别(OCR):使用 Tesseract OCR 从图片中提取文字,支持中文、英文及其他语言的识别。
介绍来源: third_party · user_f80dbe1a · 1.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: image-ocr
description: "Extract text from images using Tesseract OCR (supports Chinese, English, and other languages)."
version: 1.1.0
author: Hermes Agent
license: MIT
platforms: [windows, macos, linux]
metadata:
hermes:
tags: [OCR, Image, Text-Extraction, Chinese, English, Cross-Platform]Image OCR (Tesseract)
Extract text from images using Tesseract OCR engine with Python wrapper. Cross-platform support for Windows, macOS, and Linux.
Prerequisites
- Tesseract OCR (v5.0+)
- Python packages:
pytesseract,Pillow - Language packs: Chinese (
chi_sim) and English (eng) recommended
Install Tesseract
| Platform | Command |
|---|---|
| Windows | Download from UB-Mannheim/tesseract |
| macOS | brew install tesseract |
| Linux | sudo apt install tesseract-ocr (Debian/Ubuntu) |
Install Python Dependencies
pip install pytesseract Pillow
Usage
Basic OCR
python scripts/ocr.py <image_path> [-l LANGUAGE] [--psm PSM]
Examples:
# Auto-detect Tesseract, use default language (chi_sim+eng)
python scripts/ocr.py screenshot.png
# Specify language
python scripts/ocr.py document.jpg -l chi_sim+eng
# Specify page segmentation mode
python scripts/ocr.py photo.jpg -l eng --psm 6
# Specify Tesseract path manually
python scripts/ocr.py image.png --tesseract-path "C:\Program Files\Tesseract-OCR"
# List installed language packs
python scripts/ocr.py --list-langs
Tesseract Discovery (auto-detection order)
The script finds Tesseract automatically in this order:
--tesseract-pathCLI argumentTESSERACT_PATHenvironment variable- Config file (
~/.config/image-ocr/config.jsonor%APPDATA%/image-ocr/config.json) - Common install locations:
- Windows:
C:\Program Files\Tesseract-OCR,C:\Program Files (x86)\Tesseract-OCR - macOS:
/usr/local/bin/tesseract,/opt/homebrew/bin/tesseract - Linux:
/usr/bin/tesseract,/usr/local/bin/tesseract
- Windows:
- System
PATH
Persistent Configuration
Create a JSON config file to set a persistent Tesseract path:
Windows: %APPDATA%\image-ocr\config.json
macOS/Linux: ~/.config/image-ocr/config.json
{
"tesseract_path": "/path/to/tesseract"
}
Supported Languages
| Language | Code | Description |
|---|---|---|
| Chinese Simplified | chi_sim |
简体中文 |
| Chinese Traditional | chi_tra |
繁體中文 |
| English | eng |
English |
| Japanese | jpn |
日本語 |
| Korean | kor |
한국어 |
Combine multiple languages: chi_sim+eng
Script Location
scripts/ocr.py - Main OCR script
Notes
- For best results, ensure images are clear and well-lit
- Chinese recognition requires
chi_simlanguage pack - Output is plain text; use
--psmflag for specific page segmentation modes - Verbose diagnostic info (Tesseract version, path, language) is printed to stderr
当前收录版本
1.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- OCR 文本提取是高频刚需场景,直接解决用户从图像中提取文本的核心痛点
- 支持中英文及多语言,具备跨平台能力,实用价值高
亮点
- 触发词精准完整,明确描述功能为从图像中提取文本,边界清晰
亮点
- 文档结构清晰完整,包含前置条件、安装步骤、使用示例、配置说明等
- frontmatter 完整,示例丰富,便于用户理解和执行
亮点
- 工具来源明确,参数说明完整,支持多种语言包和 PSM 模式
- 提供自动发现 Tesseract 路径的机制及持久化配置方案,容错能力强
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 28, 29, 34 行 -
管理员或提升权限
确认确有必要再提升权限;不要关闭防护、绕过证书验证或扩大整个系统的访问权限。
主文档提及 · 第 29 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。