返回顶部
g

general-ocr-struct通用OCR结构化

General-purpose offline OCR and post-processing for Chinese/English screenshots, scanned images, receipts, tables, chat screenshots, statement screenshots, and other text-heavy images. Use when you need to: (1) extract text from an image locally, (2) return raw OCR text before interpretation, (3) clean broken OCR lines into structured content, (4) reorganize recognized text into rows/fields for downstream use, or (5) separate recognition from later table entry, summarization, or document draftin

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
341
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

general-ocr-struct

通用OCR结构化

使用此技能将OCR识别与下游内容整理分离。

工作流程

  1. 1. 首先对图像运行本地OCR脚本。
  2. 在需要保证准确性的情况下,先返回原始OCR文本,再进行业务解读。
  3. 如果图像是交易明细截图,则运行结构化模式,将行分组为字段。
  4. 将不确定的字段明确标记为待确认;不要猜测缺失内容。
  5. 只有在用户确认识别质量后,才将结果用于表格、摘要或文档。

命令

原始OCR

bash
python3 scripts/general_ocr.py raw /path/to/image.jpg

结构化交易提取

bash
python3 scripts/general_ocr.py transactions /path/to/image.jpg

JSON输出

bash
python3 scripts/general_ocr.py transactions /path/to/image.jpg --json

输出规则

  • - 优先显示识别结果,再显示清理后的结构。
  • 尽可能保留原始措辞。
  • 对于不确定的内容,使用待确认而非推断。
  • 根据源图像类型调整结构。对于类似账单的截图,常见字段包括:card_last4、date、time、currency、merchant、amount。

备注

  • - 此技能在本地使用RapidOCR。
  • 首次安装可能需要Python包;设置完成后可离线运行。
  • 如果OCR质量较差,在进行更深入的整理前,请求获取更高分辨率的原始截图。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 general-ocr-struct-1776027969 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 general-ocr-struct-1776027969 技能

通过命令行安装

skillhub install general-ocr-struct-1776027969

下载

⬇ 下载 general-ocr-struct v0.1.0(免费)

文件大小: 4.96 KB | 发布时间: 2026-4-13 10:25

v0.1.0 最新 2026-4-13 10:25
Initial release: local RapidOCR-based OCR with raw extraction and transaction-style structuring workflow.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部