> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 表格识别

## 指令说明

**描述：** 使用 OCR 识别图片中的表格数据，并将识别结果保存为数据表格变量，供后续流程处理。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/54VOmvcVz9x5vq70/helpcenter/commands/ai/images/recognizetablecommand-05.png?fit=max&auto=format&n=54VOmvcVz9x5vq70&q=85&s=efa3d0e2c97563bdccac2a92df4daba6" alt="表格识别指令参数面板" width="650" height="496" data-path="helpcenter/commands/ai/images/recognizetablecommand-05.png" />

    | 参数                 | 说明                                            |
    | ------------------ | --------------------------------------------- |
    | **OCR引擎**          | 默认使用八爪鱼OCR                                    |
    | **图像来源**           | 请选择将要识别的图像来源：本地文件、网络图片、桌面元素、网页元素              |
    | **网页路径（本地文件）**     | 请输入要识别图像的文件路径                                 |
    | **图像URL（网络图片）**    | 请输入要识别图像的URL                                  |
    | **桌面元素（桌面元素）**     | 请选择或捕获要识别的桌面元素                                |
    | **网页对象（网页元素）**     | 输入一个获取到的或者通过"打开网页”创建的网页对象                     |
    | **网页元素（网页元素）**     | 请选择或捕获要识别的网页元素                                |
    | **Excel文件路径**      | 选择另存为excel(Excel)的文件路径                        |
    | **结果保存至**          | 将识别到文字坐标保存到文本变量中。                             |
    | **PDF页码（开启PDF识别）** | 需要识别的PDF文件的对应页码，当pdf file 参数有效时，识别传入页码的对应页面内容 |
    | **等待元素存在(s)**      | 等待目标元素存在的超时时间                                 |
  </Tab>

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/54VOmvcVz9x5vq70/helpcenter/commands/ai/images/recognizetablecommand-06.png?fit=max&auto=format&n=54VOmvcVz9x5vq70&q=85&s=f8d80c23994fead2f2a935f296d0006b" alt="表格识别高级参数面板" width="653" height="284" data-path="helpcenter/commands/ai/images/recognizetablecommand-06.png" />
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/54VOmvcVz9x5vq70/helpcenter/commands/ai/images/recognizetablecommand-03.png?fit=max&auto=format&n=54VOmvcVz9x5vq70&q=85&s=24c599d8a9e00e8838840b77db93ebdc" alt="表格识别使用示例" width="850" height="115" data-path="helpcenter/commands/ai/images/recognizetablecommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizetablecommand-01.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=4f4fa0db15245bdaa781793033fd5915" alt="表格识别使用示例" width="648" height="491" data-path="helpcenter/commands/ai/images/recognizetablecommand-01.png" />

**该流程执行逻辑：**

1. 准备包含表格的图片 `D:\测试.png`，在【表格识别】中将图像来源设为“本地文件”。
2. 设置结果变量“表格识别结果”；如需同时生成 Excel 文件，再指定 Excel 保存路径。
3. 执行指令后检查数据表格变量，确认图片中的行列内容已按结构写入。

完整流程示例：[打开应用示例](https://rpa.bazhuayu.com/shareableLink/65eae94d0d8a9abd448d77c9)

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/54VOmvcVz9x5vq70/helpcenter/commands/ai/images/recognizetablecommand-02.png?fit=max&auto=format&n=54VOmvcVz9x5vq70&q=85&s=36922ef321bbd8da7baaf4d6419e6ab9" alt="表格识别效果展示" width="147" height="74" data-path="helpcenter/commands/ai/images/recognizetablecommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/54VOmvcVz9x5vq70/helpcenter/commands/ai/images/recognizetablecommand-04.png?fit=max&auto=format&n=54VOmvcVz9x5vq70&q=85&s=2520bf0deacd8a9060b737b8247a8d99" alt="表格识别效果展示" width="845" height="202" data-path="helpcenter/commands/ai/images/recognizetablecommand-04.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
