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
5513e48a
Commit
5513e48a
authored
Mar 12, 2024
by
liukaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add modify inline equation y axis
add false displayed equation to inline equation
parent
f9f36c10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
ocr_dict_merge.py
magic_pdf/pre_proc/ocr_dict_merge.py
+1
-0
No files found.
magic_pdf/pre_proc/ocr_dict_merge.py
View file @
5513e48a
...
...
@@ -178,6 +178,7 @@ def modify_y_axis(spans: list):
if
(
span_y0
<
y0
and
span_y
>
y0
or
span_y0
<
y1
and
span_y
>
y1
or
span_y0
<
y0
and
span_y
>
y1
)
and
__is_overlaps_y_exceeds_threshold
(
span
[
'bbox'
],
(
0
,
y0
,
0
,
y1
)):
span
[
"bbox"
][
1
]
=
y0
# span["bbox"][3] = y1
#调整公式类型
if
span
[
"type"
]
==
"displayed_equation"
:
span
[
"type"
]
=
"inline_equation"
break
...
...
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