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
4bd3381c
Unverified
Commit
4bd3381c
authored
Apr 16, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Apr 16, 2025
Browse files
Merge pull request #2256 from myhloli/dev
fix(test_table): update image path to use relative path
parents
78d11172
f5a56bf1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tests/unittest/test_table/test_rapidtable.py
tests/unittest/test_table/test_rapidtable.py
+2
-1
No files found.
tests/unittest/test_table/test_rapidtable.py
View file @
4bd3381c
import
unittest
import
unittest
import
os
from
PIL
import
Image
from
PIL
import
Image
from
lxml
import
etree
from
lxml
import
etree
...
@@ -8,7 +9,7 @@ from magic_pdf.model.sub_modules.table.rapidtable.rapid_table import RapidTableM
...
@@ -8,7 +9,7 @@ from magic_pdf.model.sub_modules.table.rapidtable.rapid_table import RapidTableM
class
TestppTableModel
(
unittest
.
TestCase
):
class
TestppTableModel
(
unittest
.
TestCase
):
def
test_image2html
(
self
):
def
test_image2html
(
self
):
img
=
Image
.
open
(
"assets/table.jpg"
)
img
=
Image
.
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"assets/table.jpg"
)
)
atom_model_manager
=
AtomModelSingleton
()
atom_model_manager
=
AtomModelSingleton
()
ocr_engine
=
atom_model_manager
.
get_atom_model
(
ocr_engine
=
atom_model_manager
.
get_atom_model
(
atom_model_name
=
'ocr'
,
atom_model_name
=
'ocr'
,
...
...
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