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
53f9b9c6
Unverified
Commit
53f9b9c6
authored
Jul 07, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Jul 07, 2025
Browse files
Merge pull request #2914 from myhloli/dev
dev
parents
b2d11663
3d3bdf0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
mineru/model/table/rapid_table.py
mineru/model/table/rapid_table.py
+11
-8
No files found.
mineru/model/table/rapid_table.py
View file @
53f9b9c6
...
...
@@ -76,11 +76,14 @@ class RapidTableModel(object):
if
ocr_result
:
table_results
=
self
.
table_model
(
np
.
asarray
(
image
),
ocr_result
)
html_code
=
table_results
.
pred_html
table_cell_bboxes
=
table_results
.
cell_bboxes
logic_points
=
table_results
.
logic_points
elapse
=
table_results
.
elapse
return
html_code
,
table_cell_bboxes
,
logic_points
,
elapse
else
:
return
None
,
None
,
None
,
None
try
:
table_results
=
self
.
table_model
(
np
.
asarray
(
image
),
ocr_result
)
html_code
=
table_results
.
pred_html
table_cell_bboxes
=
table_results
.
cell_bboxes
logic_points
=
table_results
.
logic_points
elapse
=
table_results
.
elapse
return
html_code
,
table_cell_bboxes
,
logic_points
,
elapse
except
Exception
as
e
:
logger
.
exception
(
e
)
return
None
,
None
,
None
,
None
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