Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
5aa2e012
Commit
5aa2e012
authored
Jun 12, 2024
by
赵小蒙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
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