__init__.py 966 B

123456789101112131415161718192021222324252627282930313233343536
  1. """
  2. 表格线生成器模块
  3. 提供无线表格的智能标注功能:
  4. - 自适应行分割(支持可变行高)
  5. - 自动列边界检测
  6. - 批量处理(首页学习 + 自动传播)
  7. """
  8. from .adaptive_row_splitter import AdaptiveRowSplitter, RowRegion
  9. from .column_detector import ColumnBoundaryDetector, ColumnRegion
  10. from .smart_generator import SmartTableLineGenerator, TableStructure
  11. from .batch_processor import BatchTableProcessor, TableTemplate, PageResult
  12. # 保持原有导入的兼容性
  13. try:
  14. from .table_line_generator import TableLineGenerator
  15. from .table_template_applier import TableTemplateApplier
  16. except ImportError:
  17. pass
  18. __all__ = [
  19. # 新增
  20. 'AdaptiveRowSplitter',
  21. 'RowRegion',
  22. 'ColumnBoundaryDetector',
  23. 'ColumnRegion',
  24. 'SmartTableLineGenerator',
  25. 'TableStructure',
  26. 'BatchTableProcessor',
  27. 'TableTemplate',
  28. 'PageResult',
  29. # 原有
  30. 'TableLineGenerator',
  31. 'TableTemplateApplier',
  32. ]