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
72b7894c
Commit
72b7894c
authored
Mar 11, 2024
by
赵小蒙
Browse files
模型输出的layout顺序没有排序,需要后期排序
parent
012a8f15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
magic_pdf/pre_proc/ocr_detect_layout.py
magic_pdf/pre_proc/ocr_detect_layout.py
+2
-0
No files found.
magic_pdf/pre_proc/ocr_detect_layout.py
View file @
72b7894c
...
@@ -61,6 +61,8 @@ def adjust_layouts(layout_bboxes):
...
@@ -61,6 +61,8 @@ def adjust_layouts(layout_bboxes):
larger_layout
[
"layout_bbox"
][
1
]
=
smaller_layout
[
"layout_bbox"
][
3
]
larger_layout
[
"layout_bbox"
][
1
]
=
smaller_layout
[
"layout_bbox"
][
3
]
else
:
else
:
larger_layout
[
"layout_bbox"
][
3
]
=
smaller_layout
[
"layout_bbox"
][
1
]
larger_layout
[
"layout_bbox"
][
3
]
=
smaller_layout
[
"layout_bbox"
][
1
]
# todo 排序调整布局边界框列表
# 返回排序调整后的布局边界框列表
# 返回排序调整后的布局边界框列表
return
layout_bboxes
return
layout_bboxes
...
...
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