Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

Update unit test

SWHL8bd5245b5691
diff --git a/python/rapid_structure/tests/test_table.py b/python/rapid_structure/tests/test_table.py
index 34a1cd4..d3e9200 100644
--- a/python/rapid_structure/tests/test_table.py
+++ b/python/rapid_structure/tests/test_table.py
@@ -15,9 +15,10 @@ from rapid_table import RapidTable
def test_table():
- rapid_table = RapidTable()
+ img_path = str(root_dir / 'test_images' / 'table.jpg')
+ img = cv2.imread(img_path)
- img = cv2.imread('test_images/table.jpg')
+ rapid_table = RapidTable()
table_html_str, elapse = rapid_table(img)
assert table_html_str.count('<tr>') == 16