fix(ocr): orig field in TesseractOcrCliModel as str (#1553)

fix: ensure orig and text are both strings in TesseractOcrCliModel

Signed-off-by: Dimitris Karagatslis <dimo9.dk@gmail.com>
This commit is contained in:
jimkarag02 2025-05-14 16:05:52 +03:00 committed by GitHub
parent 9f28abf061
commit 9f8b479f17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -249,7 +249,7 @@ class TesseractOcrCliModel(BaseOcrModel):
cell = TextCell(
index=ix,
text=str(text),
orig=text,
orig=str(text),
from_ocr=True,
confidence=conf / 100.0,
rect=BoundingRectangle.from_bounding_box(