mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
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> Signed-off-by: Nikhil Khandelwal <nikhil.khandelwal3@ibm.com>
This commit is contained in:
parent
e694a36eda
commit
e30a703759
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user