backend-lehrer (5 files): - alerts_agent/db/repository.py (992 → 5), abitur_docs_api.py (956 → 3) - teacher_dashboard_api.py (951 → 3), services/pdf_service.py (916 → 3) - mail/mail_db.py (987 → 6) klausur-service (5 files): - legal_templates_ingestion.py (942 → 3), ocr_pipeline_postprocess.py (929 → 4) - ocr_pipeline_words.py (876 → 3), ocr_pipeline_ocr_merge.py (616 → 2) - KorrekturPage.tsx (956 → 6) website (5 pages): - mail (985 → 9), edu-search (958 → 8), mac-mini (950 → 7) - ocr-labeling (946 → 7), audit-workspace (871 → 4) studio-v2 (5 files + 1 deleted): - page.tsx (946 → 5), MessagesContext.tsx (925 → 4) - korrektur (914 → 6), worksheet-cleanup (899 → 6) - useVocabWorksheet.ts (888 → 3) - Deleted dead page-original.tsx (934 LOC) 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 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)
|