> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/document-processing/module/bar-code-qr-code-extraction/bar-code-extractions.md).

# 条码提取

## 概述

此功能可自动检测文档中的条码。启用后，系统会在处理文档时扫描并提取所有受支持的条码类型。

## 如何启用条码提取

按照以下步骤启用条码提取功能：

1. **前往设置**：
   * 在仪表板中，前往 **Settings（设置）**。
   * 选择 **Document Processing（文档处理）**，然后选择 **Module（模块）**。
2. **启用功能**：
   * 向下滚动，找到 \*\*Bar-Code Extraction（条码提取）\*\*选项。
   * 切换滑块以启用条码提取。\\

## **其他设置**

### **条码分配**

#### \*\*用途：\*\*在字段验证期间，允许验证人员将提取的条码值手动分配给特定文档字段。

#### 如何启用**条码分配**

按照以下步骤启用**条码分配**功能：

1. **前往设置**：
   * 在仪表板中，前往 **Settings（设置）**。
   * 选择 **Document Processing（文档处理）**，然后选择 **Module（模块）**。
2. **启用功能**：
   * 向下滚动，找到 \*\*Barcode Assignment（条码分配）\*\*选项。
   * 切换滑块以启用**条码分配**。\\

#### **工作方式：**

* 在字段验证界面中启用“Assign Barcode（分配条码）”选项。\\
* 用户可以选择检测到的条码值，并将其映射到文档字段，例如 PO Number（采购订单号）或 Invoice Number（发票号）。\\

### 按条码 / QR 码拆分文档

\*\*用途：\*\*根据特定条码或 QR 码的存在情况，自动将多页文档拆分为多个独立文档。

#### 如何启用按条码 / QR 码拆分文档

按照以下步骤启用**按条码 / QR 码拆分文档**功能：

1. **前往设置**：
   * 在仪表板中，前往 **Settings（设置）**。
   * 选择 **Document Processing（文档处理）**，然后选择 **Classification and Extraction（分类与提取）**。
2. **启用功能**：
   * 找到 \*\*Document Splitting（文档拆分）\*\*选项。
   * 在 \*\*Split（拆分）\*\*中，选择 **Split by Barcode / QR Code（按条码 / QR 码拆分）**。
   * 在 \*\*Barcode Type（条码类型）\*\*中，从列表中选择一个或多个受支持的条码类型。
   * 在 **Barcode Pattern（条码模式）中，定义触发拆分的模式。您可以使用正则表达式**（regex）来匹配动态条码值。

**工作方式：**

* 选择要触发拆分的条码类型。
* 定义条码必须匹配的模式——可以是固定字符串，也可以是正则表达式（例如，`^INV\d{6}$` 可匹配类似 `INV123456` 的条码）。
* 在文档处理期间，每当某一页包含匹配的条码时，系统就会从该页开始**创建新文档**。

### 支持的代码类型

有关受支持的条码和 QR 码格式的完整列表，请参阅[概述页面](/chinese/guan-li-yu-she-zhi/settings/document-processing/module/bar-code-qr-code-extraction.md)。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/document-processing/module/bar-code-qr-code-extraction/bar-code-extractions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
