Restructure: Move 47 cv_* files 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 39s
CI / test-go-edu-search (push) Successful in 29s
CI / test-python-klausur (push) Failing after 2m34s
CI / test-python-agent-core (push) Successful in 20s
CI / test-nodejs-website (push) Successful in 26s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-25 21:03:54 +02:00
parent 45287b3541
commit cb1be59e46
95 changed files with 317 additions and 103 deletions

View File

@@ -0,0 +1,2 @@
"""Preprocessing sub-package (deskew, dewarp, image I/O)."""
from .preprocessing import * # noqa: F401,F403

View File

@@ -11,7 +11,7 @@ from typing import Any, Dict, Tuple
import numpy as np
from cv_vocab_types import (
from ..types import (
CV2_AVAILABLE,
TESSERACT_AVAILABLE,
)

View File

@@ -16,7 +16,7 @@ from typing import Any, Dict, List, Tuple
import numpy as np
from cv_vocab_types import (
from ..types import (
CV2_AVAILABLE,
TESSERACT_AVAILABLE,
)

View File

@@ -17,7 +17,7 @@ from typing import Tuple
import numpy as np
from cv_vocab_types import (
from ..types import (
CV2_AVAILABLE,
TESSERACT_AVAILABLE,
)
@@ -38,7 +38,7 @@ except ImportError:
Image = None # type: ignore[assignment,misc]
# Re-export all deskew functions
from cv_preprocessing_deskew import ( # noqa: F401
from .deskew import ( # noqa: F401
deskew_image,
deskew_image_by_word_alignment,
deskew_image_iterative,
@@ -48,7 +48,7 @@ from cv_preprocessing_deskew import ( # noqa: F401
)
# Re-export all dewarp functions
from cv_preprocessing_dewarp import ( # noqa: F401
from .dewarp import ( # noqa: F401
_apply_shear,
_detect_shear_angle,
_detect_shear_by_hough,