> 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/ocr-settings.md).

# OCR 设置

{% embed url="<https://youtu.be/5XqEP-5fq6M>" %}
DocBits OCR 与电子文本说明：设置、质量与表头提取
{% endembed %}

## 概述

在 **OCR（光学字符识别）** 设置中，您可以配置文档处理期间 OCR 的应用方式，包括指定最低质量要求、选择是否使用嵌入文本（电子文本）、选择 OCR 版本等。本页将详细介绍所有可用设置。

## 如何访问 OCR 设置

访问 OCR 设置：

* 前往：**设置** → **文档处理** → **OCR 设置**

  <figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-d7b5210d472e53682e0a713263ebc8f128759da9%2Fsettings_ocr.png?alt=media" alt=""><figcaption></figcaption></figure>

## OCR 质量

在此部分，您可以通过调整质量滑块设置 OCR 处理所需的最低文档质量。向左或向右移动滑块可分别降低或提高质量阈值。

如果文档未达到设定的质量水平，DocBits 提供以下三种处理方式：

* **仍然运行**\
  无论文档质量如何，都会继续处理。
* **确认后重新运行**\
  **DocBits** 会暂停，并提示您确认是否继续处理。
* **抛出错误**\
  文档处理将完全停止，并显示错误消息，指出文档未达到所需的质量阈值。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-75feef3c0901d0db767f1f0a543fd2e73017f320%2Focr_settings_1.png?alt=media" alt=""><figcaption></figcaption></figure>

## 常规 OCR 设置

* **如果可用，则使用电子文本**\
  启用后，**DocBits** 将使用嵌入的电子文本（例如 PDF 中的文本），而不执行 OCR。这既能提高速度，也能提高准确性，因为系统可以直接提取文本，无需进行 OCR 处理。
* **如果可用，则使用 DESKEW**\
  此选项会自动校正扫描文档的对齐方式。拉直倾斜的图像有助于提高 OCR 准确性。
* **AI OCR 版本**\
  可用于选择 AI OCR 引擎的特定版本。\
  在以下情况下，此选项可能会有帮助：

  * 当前所选版本未能达到预期效果。
  * 您正在排查与 OCR 性能或准确性有关的问题。

  <figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-4fdae53e65c06c5b666d53f684e5378ff99ce9fa%2Focr_settings_2.png?alt=media" alt=""><figcaption></figcaption></figure>

## 表格 OCR 设置

* **如果可用，则对表格使用 AI 数据**\
  启用后，DocBits 将对表格使用 OCR 数据，而不是嵌入的电子文本（E-Text），即使已启用 **如果可用，则使用电子文本** 设置也是如此。

## 表头字段 OCR 设置

* **使用规则提取**\
  DocBits 将应用预定义的提取规则来识别表头字段。
* **使用 AI 提取**\
  DocBits 将使用 AI 自动检测并提取表头字段。

**执行顺序：**\
如果同时启用这两个选项，**DocBits** 将按以下顺序执行提取：\
**规则提取 → AI 提取**\
\ <mark style="color:red;">**注意**</mark>：为获得最佳结果并保持行为一致，请同时启用这两个选项。这样，**DocBits** 就能在表头提取过程中结合使用基于规则的方法和基于 AI 的方法。


---

# 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/ocr-settings.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.
