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
d8c5b7a7
Commit
d8c5b7a7
authored
Apr 22, 2024
by
赵小蒙
Browse files
增加block嵌套问题的todo
parent
dbb9a1ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
magic_pdf/pdf_parse_by_ocr_v2.py
magic_pdf/pdf_parse_by_ocr_v2.py
+1
-0
No files found.
magic_pdf/pdf_parse_by_ocr_v2.py
View file @
d8c5b7a7
...
@@ -71,6 +71,7 @@ def parse_pdf_by_ocr(pdf_bytes,
...
@@ -71,6 +71,7 @@ def parse_pdf_by_ocr(pdf_bytes,
'''block嵌套问题解决'''
'''block嵌套问题解决'''
#@todo 1. text block大框套小框,删除小框 2. 图片或文本框与舍弃框重叠,优先信任舍弃框 3. 文本框与标题框重叠,优先信任文本框
#@todo 1. text block大框套小框,删除小框 2. 图片或文本框与舍弃框重叠,优先信任舍弃框 3. 文本框与标题框重叠,优先信任文本框
'''获取所有需要拼接的span资源'''
'''获取所有需要拼接的span资源'''
spans
=
magic_model
.
get_all_spans
(
page_id
)
spans
=
magic_model
.
get_all_spans
(
page_id
)
'''删除重叠spans中较小的那些'''
'''删除重叠spans中较小的那些'''
...
...
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