Spaces:
Sleeping
Sleeping
Download src/ocr/__init__.py from Goubaa/ocr-layoutxlm-backend: direct link, hf CLI and curl.
- Browser
- Download file 722 Bytes
-
https://huggingface.co/spaces/Goubaa/ocr-layoutxlm-backend/resolve/main/src/ocr/__init__.py
- Command line
-
hf download hf://spaces/Goubaa/ocr-layoutxlm-backend/src/ocr/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Goubaa/ocr-layoutxlm-backend/resolve/main/src/ocr/__init__.py
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", | |
| ] | |