From 5f52de462764e682d67f1b22669f29a3ccbd7848 Mon Sep 17 00:00:00 2001 From: AuroraWright Date: Wed, 22 Oct 2025 21:31:19 +0200 Subject: [PATCH] Fix crash https://github.com/AuroraWright/owocr/issues/34 --- owocr/run.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/owocr/run.py b/owocr/run.py index 2c3970b..09bf29b 100644 --- a/owocr/run.py +++ b/owocr/run.py @@ -640,7 +640,7 @@ class TextFiltering: for j in range(len(current_lines_ocr)): if i == j: continue - if not current_lines[j]: + if not current_lines[j].replace('\n', ''): continue other_line_bbox = current_lines_ocr[j].bounding_box diff --git a/pyproject.toml b/pyproject.toml index 1d14f58..295ffd2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "owocr" -version = "1.19.1" +version = "1.19.2" description = "Japanese OCR" readme = "README.md" requires-python = ">=3.11"