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>
Signed-off-by: Benichou <fbenichou@deloitte.ca>
This commit is contained in:
Guilhem VERMOREL 2025-03-31 10:53:49 +02:00 committed by Benichou
parent 44f2b081ec
commit 4c741b53fa

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,