Token导航 LogoToken导航

Agent Skill · 图像处理

ifly-pdf-image-ocr(ifly PDF 图像 OCR)

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

ifly-pdf-image-ocr 是图像处理类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在图像处理类的 1,562 个 Skill 里排第 458。

总安装 6,539周安装 278GitHub Stars 公开资料未说明下载 2,291核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ifly-pdf-image-ocr(ifly PDF 图像 OCR)
来源仓库:https://github.com/qingzhe2020/ifly-pdf-image-ocr
安装命令:
openclaw skills install ifly-pdf-image-ocr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ifly-pdf-image-ocr

这个 Skill 是做什么的

图像处理类 Skill 处理生成、裁剪、压缩和批量转换图片的任务。

支持图像与 PDF 文档的 AI 增强 OCR 文字提取。适用于扫描件、截图等非结构化文本源处理。输出纯文本或带格式的版本供后续编辑使用。长文档处理需注意单次请求字符数上限。ifly-pdf-image-ocr 属于图像处理类 Skill,可作为该场景下的辅助能力补充。复杂排版可能导致段落错位,建议人工校对关键内容。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install ifly-pdf-image-ocr;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ifly-pdf-image-ocr 怎么安装?

在终端执行 openclaw skills install ifly-pdf-image-ocr。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ifly-pdf-image-ocr 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ifly-pdf-image-ocr 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

ifly-pdf-image-ocr 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

ifly-pdf-image-ocr 用的人多吗?

公开数据是累计安装 6,539 次,近一周安装 278 次,下载 2,291 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ifly-pdf-image-ocr 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

图像处理类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
ai-image-generation

AI 图像生成 · Codex、Claude

4,365,552382调用外部服务未明确有提醒
openai-image-gen

OpenAI 图像生成 · OpenClaw

1,906,88432需要联网MIT-0有提醒
image

图像 · OpenClaw

525,99926需要联网MIT-0通过
baoyu-cover-image

宝玉封面图 · Codex、Claude

474,24016,779只读MIT有提醒
baoyu-image-gen

宝玉图像生成器 · Codex、Claude

468,00716,778接触敏感数据MIT通过
ifly-pdf-image-ocr

ifly PDF 图像 OCR · 本页

6,539—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
ifly-pdf&image-ocr
description
ifly-pdf&image-ocr skill supporting both image OCR (AI-powered LLM OCR) and PDF document recognition. Use when user asks to OCR images, extract text from images/PDFs, convert PDF to Word/Markdown, or perform any OCR tasks on images or PDFs. Supports multi-language text extraction, document layout understanding, and various output formats.

ifly-pdf&image-ocr

AI-powered OCR service for images and PDF documents using iFlytek's advanced recognition APIs.

Quick Start

Image OCR (LLM OCR)

# OCR an image and extract text
python3 scripts/image_ocr.py /path/to/image.jpg

# Save result to file
python3 scripts/image_ocr.py /path/to/image.jpg -o output.txt

# Specify output format
python3 scripts/image_ocr.py /path/to/image.jpg --format json
python3 scripts/image_ocr.py /path/to/image.jpg --format markdown

PDF OCR

# Convert PDF to Word (default)
python3 scripts/pdf_ocr.py document.pdf

# Convert PDF to Markdown
python3 scripts/pdf_ocr.py document.pdf --format markdown

# Convert PDF to JSON
python3 scripts/pdf_ocr.py document.pdf --format json

# From public URL
python3 scripts/pdf_ocr.py --pdf-url "https://example.com/doc.pdf" --format word

Setup

API Credentials

Get credentials from iFlytek Open Platform:

For Image OCR:

  • APP_ID: Application ID
  • API_KEY: API key for authentication
  • API_SECRET: API secret for signing requests

For PDF OCR:

  • APP_ID: Application ID
  • API_SECRET: Application secret (for signature generation)

Environment Variables

# Required for both Image OCR and PDF OCR
export IFLY_APP_ID="your_app_id"

# Required for Image OCR
export IFLY_API_KEY="your_api_key"

# Required for PDF OCR
export IFLY_API_SECRET="your_api_secret"

Features

Image OCR (LLM OCR)

  • AI-powered: Advanced LLM-based OCR for high accuracy
  • Multi-format output: JSON, Markdown, or both
  • Layout understanding: Preserves document structure
  • Multi-language: Supports text extraction in multiple languages
  • Image preprocessing: Automatic rotation correction, noise removal

PDF OCR

  • AI-powered OCR: Advanced AI model for accurate text extraction
  • Multiple output formats:

- Word (.docx) - Editable Word document - Markdown - Plain text with formatting - JSON - Structured data

  • Large PDF support: Up to 100 pages per document
  • Page-by-page results: Access individual page results
  • Download URLs: Direct links to processed files

API Parameters

Image OCR Parameters

ParameterTypeRequiredDescription
image_pathstringYesPath to image file
--formatstringNoOutput format: json, markdown, json,markdown (default: json,markdown)
--outputstringNoSave result to file

PDF OCR Parameters

ParameterTypeRequiredDescription
pdf_pathstringYes*Path to PDF file
--pdf-urlstringNo*Public URL of PDF file
--formatstringNoOutput format: word, markdown, json (default: word)
--no-pollflagNoReturn task ID without polling
--poll-intervalintNoPolling interval in seconds (min 5, default: 5)
--max-waitintNoMaximum wait time in seconds (default: 300)

*Either pdf_path or --pdf-url must be provided

Authentication

Image OCR (HMAC-SHA256)

Uses HMAC-SHA256 signature authentication:

  1. Generate RFC1123 format date: EEE, dd MMM yyyy HH:mm:ss GMT
  2. Create signature origin: `host: {host}\\

date: {date}\\ POST {path} HTTP/1.1`

  1. Calculate signature: HMAC-SHA256(signature_origin, apiSecret)
  2. Build authorization: hmac username="{apiKey}", algorithm="hmac-sha256", headers="host date request-line", signature="{signature}"
  3. Encode authorization in base64
  4. Send as query parameters: ?authorization={auth}&host={host}&date={date}

PDF OCR (MD5 + HMAC-SHA1)

Uses MD5 + HMAC-SHA1 signature authentication:

  1. Generate timestamp (Unix epoch in seconds)
  2. Calculate auth = MD5(appId + timestamp)
  3. Calculate signature = Base64(HMAC-SHA1(auth, apiSecret))
  4. Send headers:

- appId: Application ID - timestamp: Timestamp in seconds - signature: Generated signature

Important: Timestamp must be within 5 minutes of server time.

Response Format

Image OCR Response

{
  "header": {
    "code": 0,
    "message": "success"
  },
  "payload": {
    "result": {
      "text": "Base64-encoded OCR text..."
    }
  }
}

PDF OCR Start Response

{
  "flag": true,
  "code": 0,
  "desc": "成功",
  "data": {
    "taskNo": "25082744936879",
    "status": "CREATE",
    "tip": "任务创建成功"
  }
}

PDF OCR Status Response

{
  "flag": true,
  "code": 0,
  "desc": "成功",
  "data": {
    "taskNo": "25082759289333",
    "exportFormat": "word",
    "status": "FINISH",
    "downUrl": "http://bjcdn.openstorage.cn/...",
    "tip": "已完成",
    "pageList": [...]
  }
}

Task Status (PDF OCR)

StatusDescription
CREATETask created successfully
WAITINGWaiting in queue
DOINGProcessing
FINISHCompleted
FAILEDFailed
ANY_FAILEDPartially completed (some pages failed)
STOPPaused

Error Codes

(。・ω・。) 嗨~遇到错误码了吗?来看看怎么解决吧~ ✧⁺⸜(●˙▾˙●)⸝⁺✧

Platform Common Error Codes

CodeDescriptionHintSolution
10009input invalid data(◎_◎;) 哎呀~数据格式不太对呢检查输入数据是否符合要求
10010service license not enough(╯°□°)╯︵ ┻━┻ 授权数量不足或已过期!提交工单联系客服
10019service read buffer timeout(。-`ω´-) session超时啦~检查是否数据发送完毕但未关闭连接
10043Syscall AudioCodingDecode error(◎_◎;) 音频解码失败惹...检查aue参数,如果为speex,请确保音频是speex音频并分段压缩且与帧大小一致
10114session timeout(。-`ω´-) 会话时间超时啦~检查是否发送数据时间超过了60s
10139invalid param(◎_◎;) 参数好像不太对呢检查参数是否正确
10160parse request json error(◎_◎;) 请求数据格式有误~检查请求数据是否是合法的json
10161parse base64 string error(◎_◎;) Base64解码失败啦检查发送的数据是否使用base64编码了
10163param validate error(◎_◎;) 参数校验没通过呢具体原因见详细的描述
10200read data timeout(。-`ω´-) 读取数据超时了~检查是否累计10s未发送数据并且未关闭连接
10222context deadline exceeded(╯°□°)╯︵ ┻━┻ 出错啦!1.检查上传数据是否超过接口上限;2.SSL证书无效请提交工单
10223RemoteLB: can't find valued addr(◎_◎;) 找不到服务节点呢提交工单联系技术人员
10313invalid appid(◎_◎;) appid和apikey不匹配哦检查appid是否合法
10317invalid version(◎_◎;) 版本号有问题呢请到控制台提交工单联系技术人员
10700not authority(╯°□°)╯︵ ┻━┻ 权限不足!按照报错原因对照开发文档检查,如仍无法解决,请提供sid及错误信息提交工单
11200auth no license(╯°□°)╯︵ ┻━┻ 功能未授权!检查appid是否正确,确认是否添加了相关服务,检查调用量是否超限或授权是否到期
11201auth no enough license(╯°□°)╯︵ ┻━┻ 每日交互次数超限啦!提交应用审核提额或联系商务购买企业级接口
11503server error: atmos return error(。-`ω´-) 服务器返回了错误数据...提交工单
11502server error: too many datas(。-`ω´-) 服务器配置有问题呢提交工单
100001~100010WrapperInitErr(◎_◎;) 引擎调用出错啦!请根据message中的errno查看引擎错误码说明

Additional Resources


Original API Error Codes

CodeDescriptionSolution
10000System errorCheck auth info, request method, parameters
10001Signature authentication failedCheck credentials
10002Business processing errorCheck error message
10003Quota/insufficient balanceCheck account balance

Limitations

Image OCR

  • Format: Common image formats (JPG, PNG, etc.)
  • Size: Reasonable file sizes for web upload
  • Rate limiting: Follow API rate limits

PDF OCR

  • Max pages: 100 pages per PDF
  • Protected PDFs: Not supported (password/encrypted)
  • Rate limiting: Status query limited to once per 5 seconds
  • Time limit: Timestamp must be within ±5 minutes of server time

Tips

Image OCR

  1. High-quality images: Use clear, high-resolution images for best results
  2. Multiple formats: Use json,markdown to get both structured and formatted output
  3. Save results: Use -o flag to save OCR results to file

PDF OCR

  1. Math formulas: Use markdown format for PDFs with mathematical formulas
  2. Large PDFs: Split into sections if > 100 pages
  3. Polling interval: Minimum 5 seconds between status queries
  4. Network URLs: Ensure PDF URLs are publicly accessible
  5. Download URLs: Download files promptly as URLs may expire

平台分布

OpenClaw

97.19%
按下载量换算2,227

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills