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
zhougaofeng
magic_pdf
Commits
be53986f
"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "19bbfb2b9aa20c47002290243146a2d6299780ca"
Commit
be53986f
authored
Nov 25, 2024
by
zhougaofeng
Browse files
Update common_parse.py
parent
59af01ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
magic_pdf/parse/common_parse.py
magic_pdf/parse/common_parse.py
+2
-2
No files found.
magic_pdf/parse/common_parse.py
View file @
be53986f
...
@@ -43,11 +43,11 @@ def process_file(file_path, output_dir):
...
@@ -43,11 +43,11 @@ def process_file(file_path, output_dir):
start
=
time
.
time
()
start
=
time
.
time
()
if
file_path
.
endswith
(
'.pdf'
):
if
file_path
.
endswith
(
'.pdf'
):
res
=
pdf_ocr
.
ocr_pdf_client
(
config_path
,
file_path
,
output_dir
)
res
=
pdf_ocr
.
ocr_pdf_client
(
file_path
,
output_dir
)
elif
file_path
.
endswith
(
'.xls'
)
or
file_path
.
endswith
(
'.xlsx'
):
elif
file_path
.
endswith
(
'.xls'
)
or
file_path
.
endswith
(
'.xlsx'
):
res
=
excel_ocr
.
parse
(
file_path
,
output_dir
)
res
=
excel_ocr
.
parse
(
file_path
,
output_dir
)
elif
file_path
.
endswith
(
'.ofd'
):
elif
file_path
.
endswith
(
'.ofd'
):
res
=
ofd_ocr
.
parse_ofd
(
config_path
,
file_path
,
output_dir
)
res
=
ofd_ocr
.
parse_ofd
(
file_path
,
output_dir
)
end
=
time
.
time
()
end
=
time
.
time
()
...
...
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