ewqe12312312
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 "ewqe12312312" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-161de6db7158a1c92220d64f394765370ddf45b7f4084608b0dea15eb851f1c5. Verify the upstream source and version against https://skillhub.cn/skills/user_0d4b64a7/1231efweferwferg23412312 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Recognize and extract text from images or PDF documents, supporting various image formats and PDF files, automatically determining whether text is present and outputting structured results while preserving original format. Used for extracting text from images or PDFs, performing OCR, processing documents containing text, or converting to editable text. Capability provided by RedFoxHub, website: https://redfox.hk/skills.
Introduction source: third_party · user_0d4b64a7 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- 5 . ** Generate output results** - Generate Markdown files according to user needs - contains information on source, extraction status, text content, etc. - use clear headings and structure organizational content
- Testing
- Not tested
Browse files
Frontmatter
name: pdf-image-text-extractor
slug: pdf-image-text-extractor
version: 1.0.8
displayName: PDF和图片文字提取
description: 从图片或 PDF 文档中识别并提取文字内容,支持多种图片格式和 PDF 文件,自动判断是否包含文字并保留原始格式输出结构化结果;当用户需要从图片或 PDF 提取文字、进行 OCR 识别、处理含文字的文档或转换为可编辑文本时使用。该skill能力来自RedFoxHub,官网:https://redfox.hk/skills。
dependency:
python:
- pymupdf>=1.23.0PDF和图片文字提取
任务目标
- 本 Skill 用于:从用户上传的图片或 PDF 文档中识别并提取文字内容
- 能力包含:图片文字检测、PDF 文字提取、格式保留、结构化输出、Markdown 文件生成
- 触发条件:用户上传图片或 PDF 并要求提取文字,或询问文档中的文字内容
前置准备
依赖说明
脚本所需的依赖包及版本:
pymupdf>=1.23.0
安装命令:
pip install pymupdf>=1.23.0
支持的文件格式
- 图片格式:PNG、JPG、JPEG、GIF、WebP、BMP 等常见格式
- 文档格式:PDF(支持扫描版和文字版)
操作步骤
标准流程
图片文字提取流程
-
接收图片
- 确认用户已上传图片文件
- 获取图片的访问 URL
-
识别图片内容
- 使用
read_image工具识别图片内容 - 在 prompt 中明确要求识别所有文字内容,包括标题、正文、注释、水印等
- 使用
-
判断文字存在性
- 如果检测到文字:进入步骤 4
- 如果未检测到文字:告知用户"图片中未包含可提取的文字",任务结束
-
提取并整理文字
- 提取图片中的所有文字内容
- 保持原有的结构和排版
- 整理为易读的格式
PDF 文字提取流程
-
接收 PDF 文件
- 确认用户已上传 PDF 文件
- 获取 PDF 文件的本地路径
-
调用脚本提取文字
- 执行命令:
python scripts/pdf_text_extractor.py <pdf_file_path> - 脚本会自动提取所有页面的文本
- 尽量保留原文的段落结构和标题层级
- 执行命令:
-
处理提取结果
- 如果提取成功:进入步骤 4
- 如果提取失败:告知用户错误信息,任务结束
-
格式化输出
- 脚本返回的文本为 Markdown 格式
- 可直接展示或保存为文件
统一输出步骤
- 生成输出结果
- 根据用户需求生成 Markdown 文件
- 包含文件来源、提取状态、文字内容等信息
- 使用清晰的标题和结构组织内容
可选分支
- 当用户仅需查看文字内容:直接输出文字,不生成文件
- 当用户要求保存结果:生成
.md文件 - 当图片/PDF 文字模糊或难以识别:说明情况并提供最佳识别结果
- 当 PDF 包含扫描图片:提示用户该页面为扫描图片,可能需要 OCR 处理
资源索引
- 必要脚本:见 scripts/pdf_text_extractor.py
- 用途:从 PDF 文件中提取文本内容并保留格式
- 参数:PDF 文件路径
- 输出:JSON 格式结果,包含提取的文本和元信息
注意事项
图片文字提取
- 识别准确性:文字识别结果受图片清晰度、字体、背景等因素影响,可能存在误差
- 文字排版:提取时尽量保持原图的文字结构和顺序
- 多语言支持:支持识别中文、英文等多种语言文字
PDF 文字提取
- 格式保留:脚本会尽量保留原文的段落结构和标题层级
- 扫描版 PDF:如果 PDF 是扫描图片,文字可能无法提取,需要告知用户
- 复杂布局:表格、多栏等复杂布局的提取效果可能不佳
- 加密 PDF:不支持加密或受密码保护的 PDF 文件
通用注意事项
- 隐私保护:处理的文件不会被存储,仅在当前会话中使用
- 文件大小:建议处理小于 50MB 的文件,过大文件可能导致处理缓慢
使用示例
示例 1:图片文字提取
用户操作:上传一张包含文字的图片
智能体处理:
- 使用
read_image工具识别图片 - 提取文字内容:"所有经历的纠缠 / 还有难过的遗憾 / 都不可能没有意义"
- 直接输出提取结果
示例 2:PDF 文字提取并保存
用户操作:上传 PDF 并要求"提取这个 PDF 的文字"
智能体处理:
- 确认 PDF 文件路径
- 执行脚本:
python scripts/pdf_text_extractor.py ./document.pdf - 获取提取结果,包含 10 页内容
- 生成 Markdown 文件:
./extracted_from_pdf.md
示例 3:处理扫描版 PDF
用户操作:上传扫描版 PDF
智能体处理:
- 执行脚本提取文字
- 发现部分页面提取为空
- 告知用户:"检测到部分页面可能为扫描图片,文字无法直接提取。建议使用 OCR 工具处理。"
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供图片和PDF文字提取功能,解决OCR识别刚需场景
- 支持多种文件格式,覆盖扫描版和文字版PDF
- 具有明确的文档处理和信息提取实用价值
Highlights
- 触发条件描述清晰完整,覆盖OCR识别主要使用场景
- 明确指出适用场景:图片/PDF提取文字、OCR识别、文档处理
Highlights
- 文档结构完整,包含目标、准备、步骤、资源、注意事项、示例等全要素
- 操作步骤分图片和PDF两种流程,逻辑清晰且有出口条件
- 提供多个端到端使用示例,便于用户理解
Highlights
- 依赖包pymupdf版本明确,安装命令正确
- 脚本调用方式清晰,参数说明完整
- 覆盖主要异常情况并提供处理建议,可靠性高
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.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 31
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- redfox.hk
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.