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
51f56aa3
Commit
51f56aa3
authored
Oct 17, 2024
by
liukaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: merge formula update
parent
ece7f8d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Constants.py
magic_pdf/libs/Constants.py
+2
-2
pdf_extract_kit.py
magic_pdf/model/pdf_extract_kit.py
+4
-0
No files found.
magic_pdf/libs/Constants.py
View file @
51f56aa3
...
@@ -29,10 +29,10 @@ TABLE_MASTER_DICT = "table_master_structure_dict.txt"
...
@@ -29,10 +29,10 @@ TABLE_MASTER_DICT = "table_master_structure_dict.txt"
TABLE_MASTER_DIR
=
"table_structure_tablemaster_infer/"
TABLE_MASTER_DIR
=
"table_structure_tablemaster_infer/"
# pp detect model dir
# pp detect model dir
DETECT_MODEL_DIR
=
"ch_PP-OCRv
3
_det_infer"
DETECT_MODEL_DIR
=
"ch_PP-OCRv
4
_det_infer"
# pp rec model dir
# pp rec model dir
REC_MODEL_DIR
=
"ch_PP-OCRv
3
_rec_infer"
REC_MODEL_DIR
=
"ch_PP-OCRv
4
_rec_infer"
# pp rec char dict path
# pp rec char dict path
REC_CHAR_DICT
=
"ppocr_keys_v1.txt"
REC_CHAR_DICT
=
"ppocr_keys_v1.txt"
...
...
magic_pdf/model/pdf_extract_kit.py
View file @
51f56aa3
...
@@ -433,3 +433,7 @@ class CustomPEKModel:
...
@@ -433,3 +433,7 @@ class CustomPEKModel:
logger
.
info
(
f
"-----page total time: {round(time.time() - page_start, 2)}-----"
)
logger
.
info
(
f
"-----page total time: {round(time.time() - page_start, 2)}-----"
)
return
layout_res
return
layout_res
if
__name__
==
'__main__'
:
print
()
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