Skip to content

Conversation

@Luxorion-12
Copy link

image 部分

@paddle-bot
Copy link

paddle-bot bot commented Nov 3, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contrib/contributor Contributor-related discussion or task. label Nov 3, 2025
@Luxorion-12
Copy link
Author

@cuicheng01

Copy link
Collaborator

@cuicheng01 cuicheng01 left a comment

Choose a reason for hiding this comment

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

其他格式没问题

Added detailed descriptions for various parameters related to device selection, inference settings, and performance optimizations in the OCR documentation.
@luotao1
Copy link
Collaborator

luotao1 commented Nov 25, 2025

需要解决冲突

<li>调用<code>save_to_json()</code> 方法会将上述内容保存到指定的<code>save_path</code>中,如果指定为目录,则保存的路径为<code>save_path/{your_img_basename}_res.json</code>,如果指定为文件,则直接保存到该文件中。由于json文件不支持保存numpy数组,因此会将其中的<code>numpy.array</code>类型转换为列表形式。json中的字段内容如下:</li>
<li>
<ol start="1" type="1">
<li><code>input_path</code>: <code>(str)</code> 待预测图像的输入路径</li>
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里前边的渲染有点小问题

<td><code>layout_nms</code></td>
<td>版面检测是否使用后处理NMS。如果不设置,将使用产线初始化的该参数值,默认初始化为<code>True</code>。</td>
<td><b>含义:</b>版面检测是否使用后处理NMS。<br/>
<b>说明:</b>如果不设置,将使用产线初始化的该参数值,默认初始化为c。</td>
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里的默认值似乎不对

<b>说明:</b>如果不设置,将使用产线初始化的该参数值,默认初始化为c。</td>
<td><code>bool</code></td>
<td></td>
<td><code>0.5</code></td>
Copy link
Collaborator

Choose a reason for hiding this comment

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

包括这个位置,也不对

Clarify the behavior of save_to_json() method regarding output paths and numpy array conversion.
Updated default initialization value for layout_nms parameter to True.
@Luxorion-12
Copy link
Author

@cuicheng01 该pr的comments已修改

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

Labels

contrib/contributor Contributor-related discussion or task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants