← 返回
未分类 中文

Image To Excel

Extract table content from images, retrieve row/column data, correct recognition errors, and generate a well-formatted Excel file.
从图像中提取表格内容,获取行列数据,纠正识别错误,生成格式良好的Excel文件。
openlark openlark 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 86
下载
💾 2
安装
1
版本
#latest

概述

Image to Excel

Extract tables from images and generate .xlsx files.

Use Cases

Use when users upload images containing tables and request "convert to table", "extract table", or "generate Excel".

Workflow

1. Analyze Image

Use the image tool to load the user-uploaded image, with a prompt requesting row-by-row, column-by-column table data extraction:

Extract all table data from the image row by row and column by column, returning it as a JSON array.
Format: [[row1col1, row1col2, ...], [row2col1, row2col2, ...], ...]
Notes:
- The first row may be a header; keep it as-is
- Split merged cells into individual cells and fill with the same value
- Preserve original formatting for amounts and numbers
- Use empty string "" for missing cells

2. Data Validation & Correction

After receiving the JSON data from the image model, check and correct:

  • Row/column count consistency (fill in missing cells)
  • Number format correctness (remove extra spaces, unify decimal points)
  • Chinese character recognition accuracy (fix obvious typos)
  • Header completeness (infer missing headers from content)

Store the corrected data in the variable rows.

3. Write to Excel

Call the generation script with the corrected data:

python3 scripts/gen_excel.py <output_path> '<json_data>'
  • output_path: Output path, e.g., /root/.openclaw/workspace/table_extracted.xlsx
  • json_data: Corrected 2D array as a JSON string

4. Output Results

Inform the user of the file save location and display a preview of the first 5 rows for confirmation.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-06-07 06:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 476 📥 157,806
content-creation

Toutiao Graphic Publisher

openlark
通过浏览器自动化在头条发布图文内容,支持智能排版、自动生成热门标签等功能。
★ 2 📥 1,056
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 937 📥 187,781