|
|
@@ -17,12 +17,21 @@ import json
|
|
|
|
|
|
# 导入工具模块
|
|
|
from ocr_validator_utils import (
|
|
|
- load_config, load_css_styles, load_ocr_data_file, process_ocr_data,
|
|
|
- draw_bbox_on_image, get_ocr_statistics, convert_html_table_to_markdown,
|
|
|
- parse_html_tables, find_available_ocr_files, create_dynamic_css,
|
|
|
- export_tables_to_excel, get_table_statistics, group_texts_by_category,
|
|
|
+ load_config, load_ocr_data_file, process_ocr_data,
|
|
|
+ get_ocr_statistics,
|
|
|
+ find_available_ocr_files,
|
|
|
+ group_texts_by_category,
|
|
|
find_available_ocr_files_multi_source, get_data_source_display_name
|
|
|
)
|
|
|
+from ocr_validator_file_utils import (
|
|
|
+ load_css_styles,
|
|
|
+ draw_bbox_on_image,
|
|
|
+ convert_html_table_to_markdown,
|
|
|
+ parse_html_tables,
|
|
|
+ create_dynamic_css,
|
|
|
+ export_tables_to_excel,
|
|
|
+ get_table_statistics,
|
|
|
+)
|
|
|
from ocr_validator_layout import OCRLayoutManager
|
|
|
from ocr_by_vlm import ocr_with_vlm
|
|
|
from compare_ocr_results import compare_ocr_results
|