|
|
@@ -12,15 +12,17 @@ import plotly.graph_objects as go
|
|
|
from typing import Tuple
|
|
|
|
|
|
from ocr_validator_utils import (
|
|
|
+ rotate_image_and_coordinates,
|
|
|
+ get_ocr_tool_rotation_config,
|
|
|
+)
|
|
|
+
|
|
|
+from ocr_validator_file_utils import (
|
|
|
convert_html_table_to_markdown,
|
|
|
parse_html_tables,
|
|
|
draw_bbox_on_image,
|
|
|
- rotate_image_and_coordinates,
|
|
|
- get_ocr_tool_rotation_config,
|
|
|
detect_image_orientation_by_opencv # 新增导入
|
|
|
)
|
|
|
|
|
|
-
|
|
|
class OCRLayoutManager:
|
|
|
"""OCR布局管理器"""
|
|
|
|