Restructure: Move ocr_pipeline + labeling + crop into ocr/ package
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 29s
CI / test-go-edu-search (push) Successful in 29s
CI / test-python-klausur (push) Failing after 2m25s
CI / test-python-agent-core (push) Successful in 19s
CI / test-nodejs-website (push) Successful in 20s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-25 21:51:43 +02:00
parent 59c400b9aa
commit 0504d22b8e
98 changed files with 10351 additions and 10152 deletions

View File

@@ -1,26 +1,4 @@
"""
OCR Pipeline Postprocessing API — composite router assembling LLM review,
reconstruction, export, validation, image detection/generation, and
handwriting removal endpoints.
Split into sub-modules:
ocr_pipeline_llm_review — LLM review + apply corrections
ocr_pipeline_reconstruction — reconstruction save, Fabric JSON, merged entries, PDF/DOCX
ocr_pipeline_validation — image detection, generation, validation, handwriting removal
Lizenz: Apache 2.0
DATENSCHUTZ: Alle Verarbeitung erfolgt lokal.
"""
from fastapi import APIRouter
from ocr_pipeline_llm_review import router as _llm_review_router
from ocr_pipeline_reconstruction import router as _reconstruction_router
from ocr_pipeline_validation import router as _validation_router
# Composite router — drop-in replacement for the old monolithic router.
# ocr_pipeline_api.py imports ``from ocr_pipeline_postprocess import router``.
router = APIRouter()
router.include_router(_llm_review_router)
router.include_router(_reconstruction_router)
router.include_router(_validation_router)
# Backward-compat shim -- module moved to ocr/pipeline/postprocess.py
import importlib as _importlib
import sys as _sys
_sys.modules[__name__] = _importlib.import_module("ocr.pipeline.postprocess")