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
350662f0
Commit
350662f0
authored
Oct 25, 2024
by
zhougaofeng
Browse files
Update pp_structure_v2.py
parent
45f75145
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/model/pp_structure_v2.py
magic_pdf/model/pp_structure_v2.py
+1
-1
No files found.
magic_pdf/model/pp_structure_v2.py
View file @
350662f0
...
...
@@ -21,7 +21,7 @@ class CustomPaddleModel:
def
__init__
(
self
,
ocr
:
bool
=
False
,
show_log
:
bool
=
False
):
self
.
model
=
PPStructure
(
table
=
False
,
ocr
=
ocr
,
show_log
=
show_log
)
def
__call__
(
self
,
img
):
def
__call__
(
self
,
img
,
index
,
end_page_id
):
try
:
import
cv2
except
ImportError
:
...
...
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