We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4c1b9 commit e402cd2Copy full SHA for e402cd2
1 file changed
demo.py
@@ -10,8 +10,7 @@
10
input_args = RapidTableInput(model_type=ModelType.UNITABLE)
11
table_engine = RapidTable(input_args)
12
13
-img_path = "tests/test_files/table_without_txt.jpg"
14
-# img_path = "https://raw.githubusercontent.com/RapidAI/RapidTable/refs/heads/main/tests/test_files/table.jpg"
+img_path = "https://raw.githubusercontent.com/RapidAI/RapidTable/refs/heads/main/tests/test_files/table.jpg"
15
16
# # 使用单字识别
17
# ori_ocr_res = ocr_engine(img_path, return_word_box=True)
@@ -23,5 +22,5 @@
23
22
24
ori_ocr_res = ocr_engine(img_path)
25
ocr_results = [ori_ocr_res.boxes, ori_ocr_res.txts, ori_ocr_res.scores]
26
-results = table_engine(img_path)
+results = table_engine(img_path, ocr_results=ocr_results)
27
results.vis(save_dir="outputs", save_name="vis")
0 commit comments