apply config correctly, adjust defaults

This commit is contained in:
mertalev 2025-06-16 16:24:26 -04:00
parent 22690fa096
commit 585d093baf
No known key found for this signature in database
GPG key ID: DF6ABC77AAD98C95
10 changed files with 43 additions and 35 deletions

View file

@ -7,16 +7,16 @@ from typing_extensions import TypedDict
class TextDetectionOutput(TypedDict):
resized: npt.NDArray[np.float32]
image: npt.NDArray[np.float32]
boxes: npt.NDArray[np.float32]
scores: npt.NDArray[np.float32]
class TextRecognitionOutput(TypedDict):
box: npt.NDArray[np.float32]
boxScore: Iterable[float]
boxScore: npt.NDArray[np.float32]
text: Iterable[str]
textScore: Iterable[float]
textScore: npt.NDArray[np.float32]
# RapidOCR expects engine_type to be an attribute