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
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:
@@ -1,27 +1,4 @@
|
||||
"""
|
||||
OCR Pipeline Geometry API (barrel re-export)
|
||||
|
||||
This module was split into:
|
||||
- ocr_pipeline_deskew.py (Deskew endpoints)
|
||||
- ocr_pipeline_dewarp.py (Dewarp endpoints)
|
||||
- ocr_pipeline_structure.py (Structure detection + exclude regions)
|
||||
- ocr_pipeline_columns.py (Column detection + ground truth)
|
||||
|
||||
The `router` object is assembled here by including all sub-routers.
|
||||
Importers that did `from ocr_pipeline_geometry import router` continue to work.
|
||||
"""
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from ocr_pipeline_deskew import router as _deskew_router
|
||||
from ocr_pipeline_dewarp import router as _dewarp_router
|
||||
from ocr_pipeline_structure import router as _structure_router
|
||||
from ocr_pipeline_columns import router as _columns_router
|
||||
|
||||
# Assemble the combined router.
|
||||
# All sub-routers use prefix="/api/v1/ocr-pipeline", so include without extra prefix.
|
||||
router = APIRouter()
|
||||
router.include_router(_deskew_router)
|
||||
router.include_router(_dewarp_router)
|
||||
router.include_router(_structure_router)
|
||||
router.include_router(_columns_router)
|
||||
# Backward-compat shim -- module moved to ocr/pipeline/geometry.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.pipeline.geometry")
|
||||
|
||||
Reference in New Issue
Block a user