Переглянути джерело

优化ocr_validator_utils和ocr_validator_file_utils模块的导入结构,提升代码可读性

zhch158_admin 1 місяць тому
батько
коміт
9b12ce8da7
1 змінених файлів з 13 додано та 4 видалено
  1. 13 4
      streamlit_ocr_validator.py

+ 13 - 4
streamlit_ocr_validator.py

@@ -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