Community编程与开发github.com

claude-office-skills/smart-ocr

高级OCR技能,用于从图像和PDF中提取文本,支持多种语言和格式。

smart-ocr 是什么?

这是一个专为Claude Code设计的智能OCR技能,能够从图像文件和扫描PDF中高效提取文本内容。它支持多种语言和字体,包括中文、英文、日文等,并具备表格和版面分析能力。该技能基于Tesseract OCR引擎,并通过预处理优化图像质量以提高识别精度。用户可以在图像处理、文档数字化和数据录入等场景中直接调用,无需手动配置复杂的OCR流程。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/claude-office-skills/skills/tree/main/skills/smart-ocr

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

smart-ocr 是做什么的?

概述

smart-ocr 是一个高级OCR技能,用于从图像和PDF中提取文本。它支持多种语言,并针对不同的文档类型(如扫描件、表格、手写体)进行了优化。

功能特性

  • 从图像(PNG, JPG, JPEG, BMP, TIFF)中提取文本
  • 从扫描PDF中提取文本
  • 支持多种语言:中文、英文、日文、韩文等
  • 表格检测与结构化输出
  • 图像预处理以提高识别精度

使用方法

从图像提取文本

# 基本用法
claude use claude-office-skills/smart-ocr --image path/to/image.png

# 指定语言
claude use claude-office-skills/smart-ocr --image path/to/image.png --language chi_sim+eng

从PDF提取文本

# 从扫描PDF中提取文本
claude use claude-office-skills/smart-ocr --pdf path/to/document.pdf

支持的平台

  • Claude Code
  • Cursor
  • Codex(通过兼容层)

环境要求

  • Tesseract OCR引擎(版本4.x或更高)
  • Python 3.8+
  • 依赖:pytesseract, pdf2image, Pillow

配置

可通过环境变量进行配置:

变量名类型默认值描述
OCR_LANGUAGEstringeng默认OCR语言
OCR_DPIinteger300图像DPI设置
OCR_CONFIGstring--oem 3 --psm 3Tesseract参数

常见问题

  • Q: 为什么提取的文本质量不高?
    A: 确保原始图像清晰,分辨率至少为300 DPI。尝试使用 --preprocess 标志。

  • Q: 如何处理多个语言?
    A: 使用 + 连接语言代码,例如 chi_sim+eng+jpn。

贡献

欢迎提交Issue和Pull Request。请参考 CONTRIBUTING.md 了解详情。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

claude-office-skills/academic-search

Search and analyze academic literature. Find papers, understand research methodologies, and synthesize academic findings for research projects.

claude-office-skills/ads-copywriter

Multi-platform ad copy generation for Google Ads, Meta/Facebook, TikTok, LinkedIn with A/B testing variants

claude-office-skills/ai-agent-builder

Build AI agents with tools, memory, and multi-step reasoning - ChatGPT, Claude, Gemini integration patterns

claude-office-skills/airtable-automation

Airtable database automation - views, automations, integrations, and workflow triggers

claude-office-skills/ai-slides

Generate complete presentations with AI - from outline to polished slides

claude-office-skills/amazon-seller

Automate Amazon seller operations including inventory, orders, pricing, and advertising management

claude-office-skills/apple-shortcuts-integration

Create and trigger Apple Shortcuts for iOS/macOS automation and cross-platform workflows

claude-office-skills/applicant-screening

Screen job applications against requirements and score candidates

claude-office-skills/asana-automation

Automate Asana project management workflows, task tracking, team collaboration, and reporting

claude-office-skills/batch-convert

Batch convert documents between multiple formats using a unified pipeline

claude-office-skills/batch-processor

Process multiple documents in bulk with parallel execution

claude-office-skills/brand-guidelines-generator

Create and maintain brand style guides for consistent visual identity

claude-office-skills/browser-automation

Automate web browser interactions, scraping, testing, and workflow automation with Puppeteer/Playwright

claude-office-skills/calendar-automation

Google Calendar and Outlook automation - scheduling optimization, meeting workflows, time blocking, and Slack/Sheets integration

claude-office-skills/changelog-generator

Generate release notes from git commits, updates, or feature lists

claude-office-skills/chart-designer

Design effective data visualizations and charts. Generate chart configurations for ECharts, Chart.js, and other libraries. Create dashboards and reports.

claude-office-skills/chat-with-pdf

Answer questions about PDF content, summarize, and extract information

claude-office-skills/clickup-automation

Automate ClickUp workspace management, task workflows, time tracking, and team productivity

claude-office-skills/company-research

Conduct comprehensive company research and due diligence. Analyze business model, competitive landscape, management, and market position.

claude-office-skills/competitive-analysis

Analyze competitors systematically. Compare products, features, pricing, positioning, and market strategies. Generate comprehensive competitive intelligence reports.

相关技能