fix: Tesseract OCR CLI can't process images composed with numbers only (#1201)

fix wrong type text extracted by tesseract_ocr_cli_model

Signed-off-by: gvl4 <Guilhem.VERMOREL@3ds.com>
Co-authored-by: gvl4 <Guilhem.VERMOREL@3ds.com>
This commit is contained in:
Guilhem VERMOREL 2025-03-31 10:53:49 +02:00 committed by GitHub
parent 44f2b081ec
commit b3d111a3cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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