fix: Handle no result from RapidOcr reader

Signed-off-by: Christoph Auer <60343111+cau-git@users.noreply.github.com>
This commit is contained in:
Christoph Auer 2024-12-10 16:05:14 +01:00 committed by GitHub
parent d0c9e8e508
commit e8884fa2d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,6 +118,7 @@ class RapidOcrModel(BaseOcrModel):
del high_res_image del high_res_image
del im del im
if result is not None:
cells = [ cells = [
OcrCell( OcrCell(
id=ix, id=ix,