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
04d8ad48
Commit
04d8ad48
authored
Dec 31, 2024
by
zhougaofeng
Browse files
Update user_api.py
parent
c19bb36e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
magic_pdf/user_api.py
magic_pdf/user_api.py
+2
-2
No files found.
magic_pdf/user_api.py
View file @
04d8ad48
...
...
@@ -50,13 +50,13 @@ def parse_txt_pdf(pdf_bytes: bytes, pdf_models: list, imageWriter: AbsReaderWrit
return
pdf_info_dict
def
parse_ocr_pdf
(
ocr_status
,
config_path
,
local_image_dir
,
pdf_bytes
:
bytes
,
pdf_models
:
list
,
imageWriter
:
AbsReaderWriter
,
is_debug
=
False
,
def
parse_ocr_pdf
(
config_path
,
local_image_dir
,
pdf_bytes
:
bytes
,
pdf_models
:
list
,
imageWriter
:
AbsReaderWriter
,
is_debug
=
False
,
start_page_id
=
0
,
end_page_id
=
None
,
lang
=
None
,
*
args
,
**
kwargs
):
"""
解析ocr类pdf
"""
pdf_info_dict
=
parse_pdf_by_ocr
(
ocr_status
,
config_path
,
local_image_dir
,
pdf_info_dict
=
parse_pdf_by_ocr
(
config_path
,
local_image_dir
,
pdf_bytes
,
pdf_models
,
imageWriter
,
...
...
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