ocr-layoutxlm-backend / src /ocr /__init__.py
Goubaa
feat: backend FastAPI OCR+LayoutXLM — model loaded from HF Hub
63874d7
Raw
History Blame Contribute Delete
722 Bytes
"""
Module OCR — Moteur docTR multilingue (Français, Anglais, Arabe)
"""
from .doctr_engine import (
get_predictor,
run_ocr,
to_layoutxlm_format,
draw_bounding_boxes,
)
from .ocr_cleaner import clean_ocr_output, correction_report
from .post_processor import (
clean_invoice_ocr,
reconstruct_lines_table_aware,
detect_column_boundaries,
lines_to_text,
correction_report_invoice,
)
__all__ = [
"get_predictor",
"run_ocr",
"to_layoutxlm_format",
"draw_bounding_boxes",
"clean_ocr_output",
"correction_report",
"clean_invoice_ocr",
"reconstruct_lines_table_aware",
"detect_column_boundaries",
"lines_to_text",
"correction_report_invoice",
]