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