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"