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:
parent
9f28abf061
commit
9f8b479f17
@ -249,7 +249,7 @@ class TesseractOcrCliModel(BaseOcrModel):
|
|||||||
cell = TextCell(
|
cell = TextCell(
|
||||||
index=ix,
|
index=ix,
|
||||||
text=str(text),
|
text=str(text),
|
||||||
orig=text,
|
orig=str(text),
|
||||||
from_ocr=True,
|
from_ocr=True,
|
||||||
confidence=conf / 100.0,
|
confidence=conf / 100.0,
|
||||||
rect=BoundingRectangle.from_bounding_box(
|
rect=BoundingRectangle.from_bounding_box(
|
||||||
|
Loading…
Reference in New Issue
Block a user