Skip to content

Commit 4e70792

Browse files
authored
Fix duplicate entry in PP-DocTranslation documentation
Removed duplicate entry for saving visualization results.
1 parent 5d11eb9 commit 4e70792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/version3.x/pipeline_usage/PP-DocTranslation.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ When enabled, the cell detection model is not used, only the table structure rec
25022502
</ol>
25032503
</li>
25042504
<li>Calling the<code>save_to_json()</code> method will save the above content to the specified <code>save_path</code> .If a directory is specified, the saved path will be <code>save_path/{your_img_basename}_res.json</code>,If a file is specified, it will be saved directly to that file. Since JSON files do not support saving numpy arrays, all <code>numpy.array</code> types will be converted to list format.</li>
2505-
<li>Calling the <code>save_to_img()</code> method will save visualization results to the specified <code>save_path</code>. If a directory is specified, it will save layout detection visual images, global OCR visual images, layout reading order visual images, etc. If a file is specified, it will be saved directly to that file. (The pipeline usually contains many result images, so it is not recommended to specify a specific file path directly, or multiple images will be overwritten, leaving only the last image.)</li>
2505+
<li>Calling the <code>save_to_img()</code> method will save visualization results to the specified <code>save_path</code>. If a directory is specified, it will save layout detection visual images, global OCR visual images, layout reading order visual images, etc. If a file is specified, it will be saved directly to that file. (The pipeline usually contains many result images, so it is not recommended to specify a specific file path directly, or multiple images will be overwritten, leaving only the last image.)</li>
25062506
<li>Calling the <code>save_to_markdown()</code> method will save the converted Markdown files to the specified <code>save_path</code>. The saved file path will be <code>save_path/{your_img_basename}.md</code>. If the input is a PDF file, it is recommended to specify a directory directly, otherwise multiple markdown files will be overwritten.</li>
25072507
<li>Calling the <code>concatenate_markdown_pages()</code> method merges the multi-page Markdown contents output by the PP-DocTranslation pipeline <code>markdown_list</code> into a single complete document and returns the merged Markdown content.</li>
25082508
</ul>

0 commit comments

Comments
 (0)