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
e48bfdda
Unverified
Commit
e48bfdda
authored
Jul 04, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Jul 04, 2025
Browse files
Update mineru/utils/ocr_utils.py
Co-authored-by:
Copilot
<
175728472+Copilot@users.noreply.github.com
>
parent
e17ca993
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mineru/utils/ocr_utils.py
mineru/utils/ocr_utils.py
+1
-1
No files found.
mineru/utils/ocr_utils.py
View file @
e48bfdda
...
@@ -289,7 +289,7 @@ def merge_det_boxes(dt_boxes):
...
@@ -289,7 +289,7 @@ def merge_det_boxes(dt_boxes):
line_height
=
max_y
-
min_y
line_height
=
max_y
-
min_y
# 只有当行宽度超过高度4倍时才进行合并
# 只有当行宽度超过高度4倍时才进行合并
if
line_width
>
line_height
*
4
:
if
line_width
>
line_height
*
LINE_WIDTH_TO_HEIGHT_RATIO_THRESHOLD
:
# Merge overlapping text regions within the same line
# Merge overlapping text regions within the same line
merged_spans
=
merge_overlapping_spans
(
line_bbox_list
)
merged_spans
=
merge_overlapping_spans
(
line_bbox_list
)
...
...
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