From 90547d11b7a2288b21cc7373bb25fd1f2e9b1f8a Mon Sep 17 00:00:00 2001 From: liukaiwen Date: Wed, 30 Oct 2024 20:05:29 +0800 Subject: [PATCH] perf: table model update with PP OCRv4 --- tests/unittest/test_table/test_tablemaster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unittest/test_table/test_tablemaster.py b/tests/unittest/test_table/test_tablemaster.py index 9078b8dd..ac68732b 100644 --- a/tests/unittest/test_table/test_tablemaster.py +++ b/tests/unittest/test_table/test_tablemaster.py @@ -10,5 +10,5 @@ def test_image2html(self): "model_dir": "/home/quyuan/.cache/modelscope/hub/opendatalab/PDF-Extract-Kit/models/TabRec/TableMaster"} table_model = ppTableModel(config) res = table_model.img2html(img) - true_value = """
MethodsRPFFPS
SegLink [26]70.086.077.08.9
PixelLink [4]73.283.077.8-
TextSnake [18]73.983.278.31.1
TextField [37]75.987.481.35.2
MSR[38]76.787.481.7-
FTSN[3]77.187.682.0-
LSE[30]81.784.282.9-
CRAFT [2]78.288.282.98.6
MCN [16]7988.83-
ATRR[35]82.185.283.6-
PAN [34]83.884.484.130.2
DB[12]79.291.584.932.0
DRRG [41]82.3088.0585.08-
Ours (SynText)80.6885.4082.9712.68
Ours (MLT-17)84.5486.6285.5712.31
\n""" + true_value = """
MethodsRPFFPS
SegLink[26]70.086.077.08.9
PixelLink[4]73.283.077.8
TextSnake [18]73.983.278.31.1
TextField [37]75.987.481.35.2
MSR[38]76.787.481.7-
FTSN [3]77.187.682.0-
LSE[30]81.784.282.9-
CRAFT [2]78.288.282.98.6
MCN[16]798883-
ATRR[35]82.185.283.6
PAN [34]83.884.484.130.2
DB[12]79.291.584.932.0
DRRG [41]82.3088.0585.08
Ours (SynText)80.6885.4082.9712.68
Ours (MLT-17)84.5486.62
\n""" assert res == true_value