From 619534239b48caf16074d858dbb721337ffeec6a Mon Sep 17 00:00:00 2001 From: "otxtan@gmail.com" Date: Sun, 19 May 2024 18:01:56 +0700 Subject: [PATCH] fix: update ocr --- src/paperless_ocr_custom/parsers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/paperless_ocr_custom/parsers.py b/src/paperless_ocr_custom/parsers.py index c7304fc3e..e16f6095f 100644 --- a/src/paperless_ocr_custom/parsers.py +++ b/src/paperless_ocr_custom/parsers.py @@ -257,6 +257,7 @@ class RasterisedDocumentParser(DocumentParser): rolate_width = width_api_img /page_width for block in data["pages"][page_num]["blocks"]: for line in block.get("lines", []): + text_line = '' for word in line.get("words", []): x1 = word["bbox"][0][0] / float(rolate_width) y1 = word["bbox"][0][1] / float(rolate_height)