mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-28 13:04:25 +00:00
fix: Handle no result from RapidOcr reader (#558)
Signed-off-by: Christoph Auer <60343111+cau-git@users.noreply.github.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
parent
6f986d26e1
commit
861e6fa90c
@ -118,6 +118,7 @@ class RapidOcrModel(BaseOcrModel):
|
||||
del high_res_image
|
||||
del im
|
||||
|
||||
if result is not None:
|
||||
cells = [
|
||||
OcrCell(
|
||||
id=ix,
|
||||
|
Loading…
Reference in New Issue
Block a user