> ## 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/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeinvoicecommand-01.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=37ff4042d651b5bf4ea92b29a398b503" alt="票据识别指令参数面板" width="652" height="522" data-path="helpcenter/commands/ai/images/recognizeinvoicecommand-01.png" />

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

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeinvoicecommand-02.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=7d95f56b61d016a8e18c934fcfd41c3a" alt="票据识别高级参数面板" width="648" height="306" data-path="helpcenter/commands/ai/images/recognizeinvoicecommand-02.png" />
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeinvoicecommand-03.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=1c6fcb54b51ebdbbf2870e2b19999fb0" alt="票据识别使用示例" width="1040" height="696" data-path="helpcenter/commands/ai/images/recognizeinvoicecommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeinvoicecommand-04.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=f60842addcff8e3ca3e02dd8fa4fdb55" alt="票据识别使用示例" width="648" height="526" data-path="helpcenter/commands/ai/images/recognizeinvoicecommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeinvoicecommand-05.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=3e1265d03177d361091b1bbc56b7c337" alt="票据识别使用示例" width="847" height="250" data-path="helpcenter/commands/ai/images/recognizeinvoicecommand-05.png" />

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

1. 准备火车票图片 `D:\火车票.png`，在【票据识别】中选择“火车票”和“本地文件”，并设置结果变量“火车票识别结果”。
2. 执行【票据识别】，由 OCR 提取票据中的出发地、目的地、金额等结构化信息。
3. 使用【打印日志】分别读取并输出识别结果中的“银川”“北京”和“280.50”，核对关键信息是否正确。

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

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeinvoicecommand-06.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=2a3bce057b07f98199fef7d146a874c4" alt="票据识别效果展示" width="836" height="224" data-path="helpcenter/commands/ai/images/recognizeinvoicecommand-06.png" />

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