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
5aa2e012
Commit
5aa2e012
authored
Jun 12, 2024
by
赵小蒙
Browse files
add paddlepaddle in requirements.txt
parent
384c979d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
magic_pdf/model/doc_analyze_by_pp_structurev2.py
magic_pdf/model/doc_analyze_by_pp_structurev2.py
+0
-1
requirements.txt
requirements.txt
+2
-0
No files found.
magic_pdf/model/doc_analyze_by_pp_structurev2.py
View file @
5aa2e012
...
@@ -56,7 +56,6 @@ def doc_analyze(pdf_bytes: bytes, ocr: bool = False, show_log: bool = False):
...
@@ -56,7 +56,6 @@ def doc_analyze(pdf_bytes: bytes, ocr: bool = False, show_log: bool = False):
page_height
=
img_dict
[
'height'
]
page_height
=
img_dict
[
'height'
]
result
=
ocr_engine
(
img
)
result
=
ocr_engine
(
img
)
spans
=
[]
spans
=
[]
need_remove
=
[]
for
line
in
result
:
for
line
in
result
:
line
.
pop
(
'img'
)
line
.
pop
(
'img'
)
'''
'''
...
...
requirements.txt
View file @
5aa2e012
...
@@ -15,3 +15,5 @@ scikit-learn>=1.0.2
...
@@ -15,3 +15,5 @@ scikit-learn>=1.0.2
nltk
==3.8.1
nltk
==3.8.1
s3pathlib
>=2.1.1
s3pathlib
>=2.1.1
pytest
pytest
paddlepaddle
paddleocr
>=2.6.0.3
\ No newline at end of file
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