> ## 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/recognizecardcommand-01.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=2e6e49077cd492b69f102705bd2bc0b5" alt="卡证识别指令参数面板" width="659" height="525" data-path="helpcenter/commands/ai/images/recognizecardcommand-01.png" />

    | 参数              | 说明                                                        |
    | --------------- | --------------------------------------------------------- |
    | **OCR引擎**       | 默认使用八爪鱼OCR                                                |
    | **图像类型**        | 请选择需要识别的卡证类型：银行卡、营业执照、护照(大陆)护照(港澳台及海外)、户口簿、行驶证、驾驶证、港澳台通行证 |
    | **图像来源**        | 请选择将要识别的图像来源：本地文件、网络图片、桌面元素、网页元素                          |
    | **网页路径（本地文件）**  | 请输入要识别图像的文件路径                                             |
    | **图像URL（网络图片）** | 请输入要识别图像的URL                                              |
    | **桌面元素（桌面元素）**  | 请选择或捕获要识别的桌面元素                                            |
    | **网页对象（网页元素）**  | 输入一个获取到的或者通过"打开网页”创建的网页对象                                 |
    | **网页元素（网页元素）**  | 请选择或捕获要识别的网页元素                                            |
    | **结果保存至**       | 将识别到文字坐标保存到文本变量中。                                         |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizecardcommand-02.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=575e087f6620327f520af1458815d926" alt="卡证识别使用示例" width="648" height="521" data-path="helpcenter/commands/ai/images/recognizecardcommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizecardcommand-04.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=38ca8de07b828c6482e58d6b41005cdd" alt="卡证识别使用示例" width="842" height="307" data-path="helpcenter/commands/ai/images/recognizecardcommand-04.png" />

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

1. 准备身份证正面图片 `D:\身份证正面.png`，在【卡证识别】中选择“身份证”和“本地文件”。
2. 将识别结果保存到变量“身份证识别结果”，然后执行 OCR 识别。
3. 使用【打印日志】读取姓名、性别、民族和身份证号等字段，确认结构化结果与图片内容一致。

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

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizecardcommand-03.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=be8cf1a021616f4a9358b629af8507fd" alt="卡证识别效果展示" width="659" height="541" data-path="helpcenter/commands/ai/images/recognizecardcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizecardcommand-05.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=56519470cdddd20cafc8ca240d83f98a" alt="卡证识别效果展示" width="838" height="265" data-path="helpcenter/commands/ai/images/recognizecardcommand-05.png" />

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