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
851d191d
Commit
851d191d
authored
Apr 25, 2024
by
liukaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新了para_split
parent
f4a7e0d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
para_split_v2.py
magic_pdf/para/para_split_v2.py
+4
-2
No files found.
magic_pdf/para/para_split_v2.py
View file @
851d191d
...
@@ -479,9 +479,11 @@ def __connect_para_inter_layoutbox(blocks_group, new_layout_bbox, lang):
...
@@ -479,9 +479,11 @@ def __connect_para_inter_layoutbox(blocks_group, new_layout_bbox, lang):
#connected_layout_paras.append(layout_paras[i])
#connected_layout_paras.append(layout_paras[i])
connected_layout_blocks
.
append
(
blocks_group
[
i
])
connected_layout_blocks
.
append
(
blocks_group
[
i
])
continue
continue
pre_layout
=
__find_layout_bbox_by_line
(
pre_last_line
[
'bbox'
],
new_layout_bbox
)
next_layout
=
__find_layout_bbox_by_line
(
next_first_line
[
'bbox'
],
new_layout_bbox
)
pre_x2_max
=
__find_layout_bbox_by_line
(
pre_last_line
[
'bbox'
],
new_layout_bbox
)[
2
]
pre_x2_max
=
pre_layout
[
2
]
if
pre_layout
else
-
1
next_x0_min
=
__find_layout_bbox_by_line
(
next_first_line
[
'bbox'
],
new_layout_bbox
)[
0
]
next_x0_min
=
next_layout
[
0
]
if
next_layout
else
-
1
pre_last_line_text
=
pre_last_line_text
.
strip
()
pre_last_line_text
=
pre_last_line_text
.
strip
()
next_first_line_text
=
next_first_line_text
.
strip
()
next_first_line_text
=
next_first_line_text
.
strip
()
...
...
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