[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71JHKKHZ4MJ8G07MM0ESW53":3,"skill-same:01M71JHKKHZ4MJ8G07MM0ESW53":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M71JHKKHZ4MJ8G07MM0ESW53","xfei-ocr",null,"Unified Xfei 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\u002FPDFs, convert PDF to Word\u002FMarkdown, or perform any OCR tasks on images or PDFs. Supports multi-language text extraction, document layout understanding, and various output formats.","FeatherHunter\u002FSKILLS","FeatherHunter","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12967785?v=4","01M71JFD7JMNT8HWC3Y9JKMWGG","王辰浩","01M71JFD8DNYSPJPGX25Y4KX70",6,"MIT","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002Fiflytek-ocr-to-en-word\u002Focr-skill\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"xfei ocr","ocr","multi","output","output formats","convert","document","use","pdfs","Word","pdf to word","formats","markdown","layout","text","tasks","image","when","PDF","images","2026-11-10 10:12:30",false,"---\nname: xfei-ocr\ndescription: Unified Xfei 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\u002FPDFs, convert PDF to Word\u002FMarkdown, or perform any OCR tasks on images or PDFs. Supports multi-language text extraction, document layout understanding, and various output formats.\n---\n\n# Xfei Unified OCR\n\nAI-powered OCR service for images and PDF documents using Xfei's advanced recognition APIs.\n\n## Quick Start\n\n### Image OCR (LLM OCR)\n\n```bash\n# OCR an image and extract text\npython3 scripts\u002Fimage_ocr.py \u002Fpath\u002Fto\u002Fimage.jpg\n\n# Save result to file\npython3 scripts\u002Fimage_ocr.py \u002Fpath\u002Fto\u002Fimage.jpg -o output.txt\n\n# Specify output format\npython3 scripts\u002Fimage_ocr.py \u002Fpath\u002Fto\u002Fimage.jpg --format json\npython3 scripts\u002Fimage_ocr.py \u002Fpath\u002Fto\u002Fimage.jpg --format markdown\n```\n\n### PDF OCR\n\n```bash\n# Convert PDF to Word (default)\npython3 scripts\u002Fpdf_ocr.py document.pdf\n\n# Convert PDF to Markdown\npython3 scripts\u002Fpdf_ocr.py document.pdf --format markdown\n\n# Convert PDF to JSON\npython3 scripts\u002Fpdf_ocr.py document.pdf --format json\n\n# From public URL\npython3 scripts\u002Fpdf_ocr.py --pdf-url \"https:\u002F\u002Fexample.com\u002Fdoc.pdf\" --format word\n```\n\n## Setup\n\n### API Credentials\n\nGet credentials from [Xfei Open Platform](https:\u002F\u002Fconsole.xfyun.cn\u002F):\n\n**For Image OCR:**\n- **APP_ID**: Application ID\n- **API_KEY**: API key for authentication\n- **API_SECRET**: API secret for signing requests\n\n**For PDF OCR:**\n- **APP_ID**: Application ID\n- **API_SECRET**: Application secret (for signature generation)\n\n### Environment Variables\n\n```bash\n# Required for both Image OCR and PDF OCR\nexport XFEI_APP_ID=\"your_app_id\"\n\n# Required for Image OCR\nexport XFEI_API_KEY=\"your_api_key\"\n\n# Required for PDF OCR\nexport XFEI_API_SECRET=\"your_api_secret\"\n```\n\n## Features\n\n### Image OCR (LLM OCR)\n\n- **AI-powered**: Advanced LLM-based OCR for high accuracy\n- **Multi-format output**: JSON, Markdown, or both\n- **Layout understanding**: Preserves document structure\n- **Multi-language**: Supports text extraction in multiple languages\n- **Image preprocessing**: Automatic rotation correction, noise removal\n\n### PDF OCR\n\n- **AI-powered OCR**: Advanced AI model for accurate text extraction\n- **Multiple output formats**:\n  - Word (.docx) - Editable Word document\n  - Markdown - Plain text with formatting\n  - JSON - Structured data\n- **Large PDF support**: Up to 100 pages per document\n- **Page-by-page results**: Access individual page results\n- **Download URLs**: Direct links to processed files\n\n## API Parameters\n\n### Image OCR Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `image_path` | string | Yes | Path to image file |\n| `--format` | string | No | Output format: json, markdown, json,markdown (default: json,markdown) |\n| `--output` | string | No | Save result to file |\n\n### PDF OCR Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `pdf_path` | string | Yes* | Path to PDF file |\n| `--pdf-url` | string | No* | Public URL of PDF file |\n| `--format` | string | No | Output format: word, markdown, json (default: word) |\n| `--no-poll` | flag | No | Return task ID without polling |\n| `--poll-interval` | int | No | Polling interval in seconds (min 5, default: 5) |\n| `--max-wait` | int | No | Maximum wait time in seconds (default: 300) |\n\n*Either `pdf_path` or `--pdf-url` must be provided\n\n## Authentication\n\n### Image OCR (HMAC-SHA256)\n\nUses HMAC-SHA256 signature authentication:\n\n1. Generate RFC1123 format date: `EEE, dd MMM yyyy HH:mm:ss GMT`\n2. Create signature origin: `host: {host}\\\\ndate: {date}\\\\nPOST {path} HTTP\u002F1.1`\n3. Calculate signature: `HMAC-SHA256(signature_origin, apiSecret)`\n4. Build authorization: `hmac username=\"{apiKey}\", algorithm=\"hmac-sha256\", headers=\"host date request-line\", signature=\"{signature}\"`\n5. Encode authorization in base64\n6. Send as query parameters: `?authorization={auth}&host={host}&date={date}`\n\n### PDF OCR (MD5 + HMAC-SHA1)\n\nUses MD5 + HMAC-SHA1 signature authentication:\n\n1. Generate timestamp (Unix epoch in seconds)\n2. Calculate `auth = MD5(appId + timestamp)`\n3. Calculate `signature = Base64(HMAC-SHA1(auth, apiSecret))`\n4. Send headers:\n   - `appId`: Application ID\n   - `timestamp`: Timestamp in seconds\n   - `signature`: Generated signature\n\n**Important**: Timestamp must be within 5 minutes of server time.\n\n## Response Format\n\n### Image OCR Response\n\n```json\n{\n  \"header\": {\n    \"code\": 0,\n    \"message\": \"success\"\n  },\n  \"payload\": {\n    \"result\": {\n      \"text\": \"Base64-encoded OCR text...\"\n    }\n  }\n}\n```\n\n### PDF OCR Start Response\n\n```json\n{\n  \"flag\": true,\n  \"code\": 0,\n  \"desc\": \"成功\",\n  \"data\": {\n    \"taskNo\": \"25082744936879\",\n    \"status\": \"CREATE\",\n    \"tip\": \"任务创建成功\"\n  }\n}\n```\n\n### PDF OCR Status Response\n\n```json\n{\n  \"flag\": true,\n  \"code\": 0,\n  \"desc\": \"成功\",\n  \"data\": {\n    \"taskNo\": \"25082759289333\",\n    \"exportFormat\": \"word\",\n    \"status\": \"FINISH\",\n    \"downUrl\": \"http:\u002F\u002Fbjcdn.openstorage.cn\u002F...\",\n    \"tip\": \"已完成\",\n    \"pageList\": [...]\n  }\n}\n```\n\n## Task Status (PDF OCR)\n\n| Status | Description |\n|--------|-------------|\n| `CREATE` | Task created successfully |\n| `WAITING` | Waiting in queue |\n| `DOING` | Processing |\n| `FINISH` | Completed |\n| `FAILED` | Failed |\n| `ANY_FAILED` | Partially completed (some pages failed) |\n| `STOP` | Paused |\n\n## Error Codes\n\n> (｡･ω･｡) 嗨~遇到错误码了吗？来看看怎么解决吧~ ✧⁺⸜(●˙▾˙●)⸝⁺✧\n\n### Platform Common Error Codes\n\n| Code | Description | Hint | Solution |\n|------|-------------|------|----------|\n| 10009 | input invalid data | (◎_◎;) 哎呀~数据格式不太对呢 | 检查输入数据是否符合要求 |\n| 10010 | service license not enough | (╯°□°)╯︵ ┻━┻ 授权数量不足或已过期！ | 提交工单联系客服 |\n| 10019 | service read buffer timeout | (。-`ω´-) session超时啦~ | 检查是否数据发送完毕但未关闭连接 |\n| 10043 | Syscall AudioCodingDecode error | (◎_◎;) 音频解码失败惹... | 检查aue参数，如果为speex，请确保音频是speex音频并分段压缩且与帧大小一致 |\n| 10114 | session timeout | (。-`ω´-) 会话时间超时啦~ | 检查是否发送数据时间超过了60s |\n| 10139 | invalid param | (◎_◎;) 参数好像不太对呢 | 检查参数是否正确 |\n| 10160 | parse request json error | (◎_◎;) 请求数据格式有误~ | 检查请求数据是否是合法的json |\n| 10161 | parse base64 string error | (◎_◎;) Base64解码失败啦 | 检查发送的数据是否使用base64编码了 |\n| 10163 | param validate error | (◎_◎;) 参数校验没通过呢 | 具体原因见详细的描述 |\n| 10200 | read data timeout | (。-`ω´-) 读取数据超时了~ | 检查是否累计10s未发送数据并且未关闭连接 |\n| 10222 | context deadline exceeded | (╯°□°)╯︵ ┻━┻ 出错啦！ | 1.检查上传数据是否超过接口上限；2.SSL证书无效请提交工单 |\n| 10223 | RemoteLB: can't find valued addr | (◎_◎;) 找不到服务节点呢 | 提交工单联系技术人员 |\n| 10313 | invalid appid | (◎_◎;) appid和apikey不匹配哦 | 检查appid是否合法 |\n| 10317 | invalid version | (◎_◎;) 版本号有问题呢 | 请到控制台提交工单联系技术人员 |\n| 10700 | not authority | (╯°□°)╯︵ ┻━┻ 权限不足！ | 按照报错原因对照开发文档检查，如仍无法解决，请提供sid及错误信息提交工单 |\n| 11200 | auth no license | (╯°□°)╯︵ ┻━┻ 功能未授权！ | 检查appid是否正确，确认是否添加了相关服务，检查调用量是否超限或授权是否到期 |\n| 11201 | auth no enough license | (╯°□°)╯︵ ┻━┻ 每日交互次数超限啦！ | 提交应用审核提额或联系商务购买企业级接口 |\n| 11503 | server error: atmos return error | (。-`ω´-) 服务器返回了错误数据... | 提交工单 |\n| 11502 | server error: too many datas | (。-`ω´-) 服务器配置有问题呢 | 提交工单 |\n| 100001~100010 | WrapperInitErr | (◎_◎;) 引擎调用出错啦！ | 请根据message中的errno查看引擎错误码说明 |\n\n### Additional Resources\n\n- (｡･ω･｡) 服务购买链接：[通用文字识别（OCR大模型版）](https:\u002F\u002Fconsole.xfyun.cn\u002Fservices\u002Fse75ocrbm)\n- (｡･ω･｡) 商务咨询链接：[购买服务量](https:\u002F\u002Fconsole.xfyun.cn\u002Fsale\u002Fbuy?wareId=9166&packageId=9166001&serviceName=%E9%80%9A%E7%94%A8%E6%96%87%E6%A1%A3%E8%AF%86%E5%88%AB%EF%BC%88OCR%E5%A4%A7%E6%A8%A1%E5%9E%8B%EF%BC%89&businessId=se75ocrbm)\n\n---\n\n### Original API Error Codes\n\n| Code | Description | Solution |\n|------|-------------|----------|\n| 10000 | System error | Check auth info, request method, parameters |\n| 10001 | Signature authentication failed | Check credentials |\n| 10002 | Business processing error | Check error message |\n| 10003 | Quota\u002Finsufficient balance | Check account balance |\n\n## Limitations\n\n### Image OCR\n- **Format**: Common image formats (JPG, PNG, etc.)\n- **Size**: Reasonable file sizes for web upload\n- **Rate limiting**: Follow API rate limits\n\n### PDF OCR\n- **Max pages**: 100 pages per PDF\n- **Protected PDFs**: Not supported (password\u002Fencrypted)\n- **Rate limiting**: Status query limited to once per 5 seconds\n- **Time limit**: Timestamp must be within ±5 minutes of server time\n\n## Tips\n\n### Image OCR\n1. **High-quality images**: Use clear, high-resolution images for best results\n2. **Multiple formats**: Use `json,markdown` to get both structured and formatted output\n3. **Save results**: Use `-o` flag to save OCR results to file\n\n### PDF OCR\n1. **Math formulas**: Use markdown format for PDFs with mathematical formulas\n2. **Large PDFs**: Split into sections if > 100 pages\n3. **Polling interval**: Minimum 5 seconds between status queries\n4. **Network URLs**: Ensure PDF URLs are publicly accessible\n5. **Download URLs**: Download files promptly as URLs may expire\n","# Xfei Unified OCR\n\nAI-powered OCR service for images and PDF documents using Xfei's advanced recognition APIs.\n\n## Quick Start\n\n### Image OCR (LLM OCR)\n\n```bash\n# OCR an image and extract text\npython3 scripts\u002Fimage_ocr.py \u002Fpath\u002Fto\u002Fimage.jpg\n\n# Save result to file\npython3 scripts\u002Fimage_ocr.py \u002Fpath\u002Fto\u002Fimage.jpg -o output.txt\n\n# Specify output format\npython3 scripts\u002Fimage_ocr.py \u002Fpath\u002Fto\u002Fimage.jpg --format json\npython3 scripts\u002Fimage_ocr.py \u002Fpath\u002Fto\u002Fimage.jpg --format markdown\n```\n\n### PDF OCR\n\n```bash\n# Convert PDF to Word (default)\npython3 scripts\u002Fpdf_ocr.py document.pdf\n\n# Convert PDF to Markdown\npython3 scripts\u002Fpdf_ocr.py document.pdf --format markdown\n\n# Convert PDF to JSON\npython3 scripts\u002Fpdf_ocr.py document.pdf --format json\n\n# From public URL\npython3 scripts\u002Fpdf_ocr.py --pdf-url \"https:\u002F\u002Fexample.com\u002Fdoc.pdf\" --format word\n```\n\n## Setup\n\n### API Credentials\n\nGet credentials from [Xfei Open Platform](https:\u002F\u002Fconsole.xfyun.cn\u002F):\n\n**For Image OCR:**\n- **APP_ID**: Application ID\n- **API_KEY**: API key for authentication\n- **API_SECRET**: API secret for signing requests\n\n**For PDF OCR:**\n- **APP_ID**: Application ID\n- **API_SECRET**: Application secret (for signature generation)\n\n### Environment Variables\n\n```bash\n# Required for both Image OCR and PDF OCR\nexport XFEI_APP_ID=\"your_app_id\"\n\n# Required for Image OCR\nexport XFEI_API_KEY=\"your_api_key\"\n\n# Required for PDF OCR\nexport XFEI_API_SECRET=\"your_api_secret\"\n```\n\n## Features\n\n### Image OCR (LLM OCR)\n\n- **AI-powered**: Advanced LLM-based OCR for high accuracy\n- **Multi-format output**: JSON, Markdown, or both\n- **Layout understanding**: Preserves document structure\n- **Multi-language**: Supports text extraction in multiple languages\n- **Image preprocessing**: Automatic rotation correction, noise removal\n\n### PDF OCR\n\n- **AI-powered OCR**: Advanced AI model for accurate text extraction\n- **Multiple output formats**:\n  - Word (.docx) - Editable Word document\n  - Markdown - Plain text with formatting\n  - JSON - Structured data\n- **Large PDF support**: Up to 100 pages per document\n- **Page-by-page results**: Access individual page results\n- **Download URLs**: Direct links to processed files\n\n## API Parameters\n\n### Image OCR Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `image_path` | string | Yes | Path to image file |\n| `--format` | string | No | Output format: json, markdown, json,markdown (default: json,markdown) |\n| `--output` | string | No | Save result to file |\n\n### PDF OCR Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `pdf_path` | string | Yes* | Path to PDF file |\n| `--pdf-url` | string | No* | Public URL of PDF file |\n| `--format` | string | No | Output format: word, markdown, json (default: word) |\n| `--no-poll` | flag | No | Return task ID without polling |\n| `--poll-interval` | int | No | Polling interval in seconds (min 5, default: 5) |\n| `--max-wait` | int | No | Maximum wait time in seconds (default: 300) |\n\n*Either `pdf_path` or `--pdf-url` must be provided\n\n## Authentication\n\n### Image OCR (HMAC-SHA256)\n\nUses HMAC-SHA256 signature authentication:\n\n1. Generate RFC1123 format date: `EEE, dd MMM yyyy HH:mm:ss GMT`\n2. Create signature origin: `host: {host}\\\\ndate: {date}\\\\nPOST {path} HTTP\u002F1.1`\n3. Calculate signature: `HMAC-SHA256(signature_origin, apiSecret)`\n4. Build authorization: `hmac username=\"{apiKey}\", algorithm=\"hmac-sha256\", headers=\"host date request-line\", signature=\"{signature}\"`\n5. Encode authorization in base64\n6. Send as query parameters: `?authorization={auth}&host={host}&date={date}`\n\n### PDF OCR (MD5 + HMAC-SHA1)\n\nUses MD5 + HMAC-SHA1 signature authentication:\n\n1. Generate timestamp (Unix epoch in seconds)\n2. Calculate `auth = MD5(appId + timestamp)`\n3. Calculate `signature = Base64(HMAC-SHA1(auth, apiSecret))`\n4. Send headers:\n   - `appId`: Application ID\n   - `timestamp`: Timestamp in seconds\n   - `signature`: Generated signature\n\n**Important**: Timestamp must be within 5 minutes of server time.\n\n## Response Format\n\n### Image OCR Response\n\n```json\n{\n  \"header\": {\n    \"code\": 0,\n    \"message\": \"success\"\n  },\n  \"payload\": {\n    \"result\": {\n      \"text\": \"Base64-encoded OCR text...\"\n    }\n  }\n}\n```\n\n### PDF OCR Start Response\n\n```json\n{\n  \"flag\": true,\n  \"code\": 0,\n  \"desc\": \"成功\",\n  \"data\": {\n    \"taskNo\": \"25082744936879\",\n    \"status\": \"CREATE\",\n    \"tip\": \"任务创建成功\"\n  }\n}\n```\n\n### PDF OCR Status Response\n\n```json\n{\n  \"flag\": true,\n  \"code\": 0,\n  \"desc\": \"成功\",\n  \"data\": {\n    \"taskNo\": \"25082759289333\",\n    \"exportFormat\": \"word\",\n    \"status\": \"FINISH\",\n    \"downUrl\": \"http:\u002F\u002Fbjcdn.openstorage.cn\u002F...\",\n    \"tip\": \"已完成\",\n    \"pageList\": [...]\n  }\n}\n```\n\n## Task Status (PDF OCR)\n\n| Status | Description |\n|--------|-------------|\n| `CREATE` | Task created successfully |\n| `WAITING` | Waiting in queue |\n| `DOING` | Processing |\n| `FINISH` | Completed |\n| `FAILED` | Failed |\n| `ANY_FAILED` | Partially completed (some pages failed) |\n| `STOP` | Paused |\n\n## Error Codes\n\n> (｡･ω･｡) 嗨~遇到错误码了吗？来看看怎么解决吧~ ✧⁺⸜(●˙▾˙●)⸝⁺✧\n\n### Platform Common Error Codes\n\n| Code | Description | Hint | Solution |\n|------|-------------|------|----------|\n| 10009 | input invalid data | (◎_◎;) 哎呀~数据格式不太对呢 | 检查输入数据是否符合要求 |\n| 10010 | service license not enough | (╯°□°)╯︵ ┻━┻ 授权数量不足或已过期！ | 提交工单联系客服 |\n| 10019 | service read buffer timeout | (。-`ω´-) session超时啦~ | 检查是否数据发送完毕但未关闭连接 |\n| 10043 | Syscall AudioCodingDecode error | (◎_◎;) 音频解码失败惹... | 检查aue参数，如果为speex，请确保音频是speex音频并分段压缩且与帧大小一致 |\n| 10114 | session timeout | (。-`ω´-) 会话时间超时啦~ | 检查是否发送数据时间超过了60s |\n| 10139 | invalid param | (◎_◎;) 参数好像不太对呢 | 检查参数是否正确 |\n| 10160 | parse request json error | (◎_◎;) 请求数据格式有误~ | 检查请求数据是否是合法的json |\n| 10161 | parse base64 string error | (◎_◎;) Base64解码失败啦 | 检查发送的数据是否使用base64编码了 |\n| 10163 | param validate error | (◎_◎;) 参数校验没通过呢 | 具体原因见详细的描述 |\n| 10200 | read data timeout | (。-`ω´-) 读取数据超时了~ | 检查是否累计10s未发送数据并且未关闭连接 |\n| 10222 | context deadline exceeded | (╯°□°)╯︵ ┻━┻ 出错啦！ | 1.检查上传数据是否超过接口上限；2.SSL证书无效请提交工单 |\n| 10223 | RemoteLB: can't find valued addr | (◎_◎;) 找不到服务节点呢 | 提交工单联系技术人员 |\n| 10313 | invalid appid | (◎_◎;) appid和apikey不匹配哦 | 检查appid是否合法 |\n| 10317 | invalid version | (◎_◎;) 版本号有问题呢 | 请到控制台提交工单联系技术人员 |\n| 10700 | not authority | (╯°□°)╯︵ ┻━┻ 权限不足！ | 按照报错原因对照开发文档检查，如仍无法解决，请提供sid及错误信息提交工单 |\n| 11200 | auth no license | (╯°□°)╯︵ ┻━┻ 功能未授权！ | 检查appid是否正确，确认是否添加了相关服务，检查调用量是否超限或授权是否到期 |\n| 11201 | auth no enough license | (╯°□°)╯︵ ┻━┻ 每日交互次数超限啦！ | 提交应用审核提额或联系商务购买企业级接口 |\n| 11503 | server error: atmos return error | (。-`ω´-) 服务器返回了错误数据... | 提交工单 |\n| 11502 | server error: too many datas | (。-`ω´-) 服务器配置有问题呢 | 提交工单 |\n| 100001~100010 | WrapperInitErr | (◎_◎;) 引擎调用出错啦！ | 请根据message中的errno查看引擎错误码说明 |\n\n### Additional Resources\n\n- (｡･ω･｡) 服务购买链接：[通用文字识别（OCR大模型版）](https:\u002F\u002Fconsole.xfyun.cn\u002Fservices\u002Fse75ocrbm)\n- (｡･ω･｡) 商务咨询链接：[购买服务量](https:\u002F\u002Fconsole.xfyun.cn\u002Fsale\u002Fbuy?wareId=9166&packageId=9166001&serviceName=%E9%80%9A%E7%94%A8%E6%96%87%E6%A1%A3%E8%AF%86%E5%88%AB%EF%BC%88OCR%E5%A4%A7%E6%A8%A1%E5%9E%8B%EF%BC%89&businessId=se75ocrbm)\n\n---\n\n### Original API Error Codes\n\n| Code | Description | Solution |\n|------|-------------|----------|\n| 10000 | System error | Check auth info, request method, parameters |\n| 10001 | Signature authentication failed | Check credentials |\n| 10002 | Business processing error | Check error message |\n| 10003 | Quota\u002Finsufficient balance | Check account balance |\n\n## Limitations\n\n### Image OCR\n- **Format**: Common image formats (JPG, PNG, etc.)\n- **Size**: Reasonable file sizes for web upload\n- **Rate limiting**: Follow API rate limits\n\n### PDF OCR\n- **Max pages**: 100 pages per PDF\n- **Protected PDFs**: Not supported (password\u002Fencrypted)\n- **Rate limiting**: Status query limited to once per 5 seconds\n- **Time limit**: Timestamp must be within ±5 minutes of server time\n\n## Tips\n\n### Image OCR\n1. **High-quality images**: Use clear, high-resolution images for best results\n2. **Multiple formats**: Use `json,markdown` to get both structured and formatted output\n3. **Save results**: Use `-o` flag to save OCR results to file\n\n### PDF OCR\n1. **Math formulas**: Use markdown format for PDFs with mathematical formulas\n2. **Large PDFs**: Split into sections if > 100 pages\n3. **Polling interval**: Minimum 5 seconds between status queries\n4. **Network URLs**: Ensure PDF URLs are publicly accessible\n5. **Download URLs**: Download files promptly as URLs may expire\n",{"name":5,"description":7},"main","5b2b73ce2fbb69cd70597cfbbf24c99bc9e94b4c","iflytek-ocr-to-en-word\u002Focr-skill",1,"https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS","https:\u002F\u002Fgithub.com\u002FFeatherHunter","The Boy, The Man, The Human.","2026-09-12 20:33:55",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add FeatherHunter\u002FSKILLS --skill xfei-ocr",{"tool":58,"command":59},"bunx","bunx skills add FeatherHunter\u002FSKILLS --skill xfei-ocr",{"tool":61,"command":62},"pnpm","pnpm dlx skills add FeatherHunter\u002FSKILLS --skill xfei-ocr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002Fiflytek-ocr-to-en-word\u002Focr-skill\u002FSKILL.md",true,[66,72,78],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},".DS_Store","OTHER","其他",6148,"https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002Fiflytek-ocr-to-en-word\u002Focr-skill\u002F.DS_Store",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fimage_ocr.py","SCRIPT","脚本",8090,"https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002Fiflytek-ocr-to-en-word\u002Focr-skill\u002Fscripts\u002Fimage_ocr.py",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fpdf_ocr.py",10275,"https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002Fiflytek-ocr-to-en-word\u002Focr-skill\u002Fscripts\u002Fpdf_ocr.py",[83,103,112,121,131,137],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":39},"01M71JPWVNC5JZ2FD4CSR3SZC1","饼干记账","记账技能。写入类:记支出、记收入、拍账单、批量录入、改记录、撤销、恢复、记报销、记退款、记借出、记借入、记收回、记偿还、记分期。查询类:查今天、查某天、查月、查区间、查分类、搜备注、查标签、查账户、查账本、查欠款、查待报销。分析类:看月度、看总览、看分类、看对比、看趋势、看大额、做统计、看洞察、看借贷。目标\u002F账户\u002F联动:设定预算、看预算、设定目标、看目标、新增账户、改账户、账户转账、看账户汇总、买东西联动、吃饭联动。**所有查询\u002F分析类唤醒词默认 invoke HTML 工作流**(scripts\u002Fbill_inject.py + templates),写入类保持文字回执。能力速查:说「饼干记账 HELP」\u002F「查帮助」\u002F「能做什么」。完整 70 个唤醒词见 references\u002F路由表.md","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002F饼干记账\u002FSKILL.md",[],[85,90,91,92,93,94,95,96,97,98,99,100,101,102],"记账","invoke","templates","文字","预算","账单","统计","收入","scripts","html","支出","help","references",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M71JPS100K4E2JN8R3B0F9NR","贴心助理","真实助手 - 主动分析用户状态，关心用户，提供帮助与提醒。不偷懒地联动所有技能，真正像个朋友一样陪伴。","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002F贴心助理\u002FSKILL.md",[],[105,110,111],"陪伴","朋友",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M71JPPN0WZ1ARA081J0JDNPC","美团","安装美团旅游技能(meituan-travel)向导 - 检查 mtskills 商店并安装 meituan-travel","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002F美团\u002FSKILL.md",[],[114,119,120],"meituan","travel",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":39},"01M71JPN921TSX62DXEFY1B8FJ","网易云音乐","安装网易云音乐 CLI 工具(@music163\u002Fncm-cli) - 通过 npm 全局安装","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002F网易云音乐\u002FSKILL.md",[],[123,128,129,130],"工具","cli","npm",{"skillNo":132,"name":133,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":39},"01M71JPF82PYTK0NYMJF8Y9E48","私家大厨","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002F私家大厨\u002FSKILL.md",[],[133],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":39},"01M71JPCK6Z5NT3G258NFKEJGG","目录树","目录树技能 - 递归扫描给定目录，输出所有目录和文件的树状结构清单","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002FSKILLS\u002Fblob\u002Fmain\u002F目录树\u002FSKILL.md",[],[144,139,145,146],"目录","文件","文件导航"]