mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
fix: ensure orig and text are both strings in TesseractOcrCliModel
Signed-off-by: Dimitris Karagatslis <dimo9.dk@gmail.com>
This commit is contained in:
parent
f1658edbad
commit
bba056b2da
@ -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