This commit is contained in:
2026-03-30 07:22:14 -03:00
parent d0707333fd
commit 4220b0418e
182 changed files with 3668 additions and 5231 deletions

View File

@@ -26,7 +26,7 @@ def _make_image(w: int = 200, h: int = 60) -> np.ndarray:
@requires_cv2
def test_binarize():
from gpu.models.preprocess import binarize
from core.gpu.models.preprocess import binarize
img = _make_image()
result = binarize(img)
@@ -40,7 +40,7 @@ def test_binarize():
@requires_cv2
def test_enhance_contrast():
from gpu.models.preprocess import enhance_contrast
from core.gpu.models.preprocess import enhance_contrast
img = _make_image()
result = enhance_contrast(img)
@@ -51,7 +51,7 @@ def test_enhance_contrast():
@requires_cv2
def test_deskew_no_rotation():
from gpu.models.preprocess import deskew
from core.gpu.models.preprocess import deskew
img = _make_image()
result = deskew(img)
@@ -63,7 +63,7 @@ def test_deskew_no_rotation():
@requires_cv2
def test_preprocess_pipeline():
from gpu.models.preprocess import preprocess
from core.gpu.models.preprocess import preprocess
img = _make_image()
@@ -76,7 +76,7 @@ def test_preprocess_pipeline():
@requires_cv2
def test_preprocess_all_disabled():
from gpu.models.preprocess import preprocess
from core.gpu.models.preprocess import preprocess
img = _make_image()
result = preprocess(img, do_binarize=False, do_deskew=False, do_contrast=False)