fix(ml): ocr inputs not resized correctly (#23541)

* fix resizing, use pillow

* unused import

* linting

* lanczos

* optimizations

fused operations

unused import
This commit is contained in:
Mert
2025-11-03 02:21:30 -05:00
committed by GitHub
parent f5ff36a1f8
commit 79d0e3e1ed
3 changed files with 120 additions and 51 deletions
@@ -7,7 +7,6 @@ from typing_extensions import TypedDict
class TextDetectionOutput(TypedDict):
image: npt.NDArray[np.float32]
boxes: npt.NDArray[np.float32]
scores: npt.NDArray[np.float32]