Skip to content

Conversation

@Luxorion-12
Copy link

@paddle-bot
Copy link

paddle-bot bot commented Nov 12, 2025

Thanks for your contribution!

changdazhou
changdazhou previously approved these changes Nov 18, 2025
changdazhou
changdazhou previously approved these changes Nov 21, 2025
<tr>
<td><code>seal_text_recognition_model_dir</code></td>
<td>印章文本识别模型的目录路径。如果不设置,将会下载官方模型。</td>
<td>印章文本识别模型的目录路径。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太对,重复了

<tr>
<td><code>formula_recognition_model_name</code></td>
<td>公式识别模型的名称。如果不设置,将会使用产线默认模型。</td>
<td>公式识别模型的名称。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太对,重复了

<tr>
<td><code>formula_recognition_model_dir</code></td>
<td>公式识别模型的目录路径。如果不设置,将会下载官方模型。</td>
<td>公式识别模型的目录路径。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太对,重复了

<tr>
<td><code>formula_recognition_batch_size</code></td>
<td>公式识别模型的batch size。如果不设置,将默认设置batch size为<code>1</code>。</td>
<td>公式识别模型的batch size。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太对,重复了

<tr>
<td><code>use_doc_orientation_classify</code></td>
<td>是否加载并使用文档方向分类模块。如果不设置,将使用产线初始化的该参数值,默认初始化为<code>False</code>。</td>
<td>是否加载并使用文档方向分类模块。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太对,重复了

<tr>
<td><code>use_table_recognition</code></td>
<td>是否加载并使用表格识别子产线。如果不设置,将使用产线初始化的该参数值,默认初始化为<code>True</code>。</td>
<td>是否加载并使用表格识别子产线。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太对,重复了

<tr>
<td><code>use_formula_recognition</code></td>
<td>是否加载并使用公式识别子产线。如果不设置,将使用产线初始化的该参数值,默认初始化为<code>True</code>。</td>
<td>是否加载并使用公式识别子产线。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太对,重复了

<tr>
<td><code>use_chart_recognition</code></td>
<td>是否加载并使用文档区域检测模块。如果不设置,将使用产线初始化的该参数值,默认初始化为<code>False</code>。</td>
<td>是否加载并使用文档区域检测模块。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太对,重复了

<tr>
<td><code>use_region_detection</code></td>
<td>是否加载并使用文档区域检测模块。如果不设置,将使用产线初始化的该参数值,默认初始化为<code>True</code>。</td>
<td>是否加载并使用文档区域检测模块。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太对,重复了


(2)调用 doc_preprocessor 产线对象的 `predict()` 方法进行推理预测,该方法会返回一个结果列表。
(2)调用 doc_preprocessor 产线对象的 <code>predict()</code> 方法进行推理预测,该方法会返回一个结果列表。
另外,产线还提供了 <code>predict_iter()</code> 方法。两者在参数接受和结果返回方面是完全一致的,区别在于 <code>predict_iter()</code> 返回的是一个 <code>generator</code>,能够逐步处理和获取预测结果,适合处理大型数据集或希望节省内存的场景。可以根据实际需求选择使用这两种方法中的任意一种。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这块的可视化会不会有问题?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多余部分已删除,可视化部分看起来没问题

Removed redundant explanation about predict_iter() method and clarified the usage of predict() method.
@Luxorion-12
Copy link
Author

@cuicheng01 已修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants