Ocr scan recognition

From aifinlab/FinClaw · View interactive version

Ocr scan recognition is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于影像文字识别的OCR扫描件识别原子 skill,适用于通用行业文档解析场景。

How to use this skill

Skill file

OCR扫描件识别 Skill

数据来源

本 Skill 支持多种扫描件输入格式,核心数据来源包括:

1. 扫描件文件类型

2. 扫描件类型

3. 扫描件特征

4. 数据格式要求

说明:本 Skill 不包含扫描件采集功能,需要用户提供扫描件文件。建议扫描件清晰且分辨率足够,以便进行准确的OCR识别。


功能

本 Skill 提供全面的OCR扫描件识别能力,涵盖多种识别功能:

1. 文字识别

2. 版面分析

3. 表格识别

4. 图像处理

5. 格式保留

6. 高级处理功能


使用示例

输出示例

{
  "document_info": {
    "filename": "scanned_document.pdf",
    "file_size": 2048000,
    "page_count": 5,
    "format": "pdf",
    "resolution": 300
  },
  "ocr_results": [
    {
      "page": 1,
      "regions": [
        {
          "region_id": 1,
          "type": "text",
          "bbox": [100, 200, 500, 300],
          "text": "2024年度财务报告",
          "confidence": 0.98,
          "language": "zh-CN"
        },
        {
          "region_id": 2,
          "type": "table",
          "bbox": [100, 350, 500, 600],
          "table_structure": {
            "rows": 10,
            "columns": 5,
            "data": [
              ["项目", "2024年", "2023年", "2022年", "2021年"],
              ["营业收入", "1000", "900", "800", "700"]
            ]
          },
          "confidence": 0.95
        }
      ],
      "full_text": "2024年度财务报告\n\n项目\t2024年\t2023年\t2022年\t2021年\n营业收入\t1000\t900\t800\t700\n...",
      "layout": {
        "width": 2100,
        "height": 2970,
        "orientation": "portrait"
      }
    }
  ],
  "statistics": {
    "total_pages": 5,
    "total_text_regions": 25,
    "total_table_regions": 3,
    "average_confidence": 0.94,
    "languages": ["zh-CN"]
  },
  "quality_assessment": {
    "overall_quality": "good",
    "clarity_score": 0.92,
    "contrast_score": 0.88,
    "recommendations": []
  }
}

注意事项与限制

1. 扫描质量要求

2. 识别准确性

3. 版面复杂度

4. 语言支持

5. 使用限制


参考资料

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.