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>
27 lines
1.0 KiB
Python
27 lines
1.0 KiB
Python
"""
|
|
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 .llm_review import router as _llm_review_router
|
|
from .reconstruction import router as _reconstruction_router
|
|
from .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)
|