Răsfoiți Sursa

refactor: Replace 'tool' parameter with 'json_format' in TableTemplateApplier for improved clarity and consistency in OCR data handling

zhch158_admin 8 ore în urmă
părinte
comite
fdb5af5aa4
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      table_line_generator/table_template_applier.py

+ 2 - 2
table_line_generator/table_template_applier.py

@@ -422,7 +422,7 @@ class TableTemplateApplier:
             # ✅ 使用统一接口解析和分析(无需 dummy_image)
             table_bbox, structure = get_structure_from_ocr(
                 raw_data, 
-                tool="mineru"
+                json_format="mineru"
             )
             
             if not structure or 'horizontal_lines' not in structure:
@@ -588,7 +588,7 @@ def apply_template_to_single_file(
 
         table_bbox, ocr_data = TableLineGenerator.parse_ocr_data(
             raw_data, 
-            tool=ocr_format
+            json_format=ocr_format
         )
         
         text_boxes = ocr_data.get('text_boxes', [])