Unverified Commit e48bfdda authored by Xiaomeng Zhao's avatar Xiaomeng Zhao Committed by GitHub
Browse files

Update mineru/utils/ocr_utils.py


Co-authored-by: default avatarCopilot <175728472+Copilot@users.noreply.github.com>
parent e17ca993
......@@ -289,7 +289,7 @@ def merge_det_boxes(dt_boxes):
line_height = max_y - min_y
# 只有当行宽度超过高度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
merged_spans = merge_overlapping_spans(line_bbox_list)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment