|
@@ -48,9 +48,9 @@ except ImportError:
|
|
|
from pdf_utils import PDFUtils
|
|
from pdf_utils import PDFUtils
|
|
|
from element_processors import ElementProcessors
|
|
from element_processors import ElementProcessors
|
|
|
|
|
|
|
|
-# 导入 merger 组件
|
|
|
|
|
|
|
+# 从 ocr_tools.ocr_merger 导入 merger 组件
|
|
|
try:
|
|
try:
|
|
|
- from merger import TableCellMatcher, TextMatcher
|
|
|
|
|
|
|
+ from ocr_tools.ocr_merger import TableCellMatcher, TextMatcher
|
|
|
MERGER_AVAILABLE = True
|
|
MERGER_AVAILABLE = True
|
|
|
except ImportError:
|
|
except ImportError:
|
|
|
MERGER_AVAILABLE = False
|
|
MERGER_AVAILABLE = False
|