Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
f49d261d
Commit
f49d261d
authored
Dec 12, 2024
by
xu rui
Browse files
docs: assume image can not using **txt** mode
parent
b7a65e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
next_docs/en/user_guide/usage/api.rst
next_docs/en/user_guide/usage/api.rst
+2
-2
No files found.
next_docs/en/user_guide/usage/api.rst
View file @
f49d261d
...
@@ -202,7 +202,7 @@ Single Image File
...
@@ -202,7 +202,7 @@ Single Image File
input_file_name = input_file.split(".")[0]
input_file_name = input_file.split(".")[0]
ds = read_local_images(input_file)[0]
ds = read_local_images(input_file)[0]
ds.apply(doc_analyze, ocr=True).pipe_
txt
_mode(image_writer).dump_md(
ds.apply(doc_analyze, ocr=True).pipe_
ocr
_mode(image_writer).dump_md(
md_writer, f"{input_file_name}.md", image_dir
md_writer, f"{input_file_name}.md", image_dir
)
)
...
@@ -237,7 +237,7 @@ Directory That Contains Images
...
@@ -237,7 +237,7 @@ Directory That Contains Images
count = 0
count = 0
for ds in dss:
for ds in dss:
ds.apply(doc_analyze, ocr=True).pipe_
txt
_mode(image_writer).dump_md(
ds.apply(doc_analyze, ocr=True).pipe_
ocr
_mode(image_writer).dump_md(
md_writer, f"{count}.md", image_dir
md_writer, f"{count}.md", image_dir
)
)
count += 1
count += 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment