From b71bb80e3ad9afa8f94c64af9dc73ee6269c5cae Mon Sep 17 00:00:00 2001 From: Robert Sachunsky Date: Fri, 28 Nov 2025 17:53:27 +0100 Subject: [PATCH] return_boxes_of_images_by_order_of_reading_new: fix 4abc2ff5 (forgot to also flip `regions_with_separators` if right2left) --- src/eynollah/utils/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eynollah/utils/__init__.py b/src/eynollah/utils/__init__.py index 765d5b1..1aecd11 100644 --- a/src/eynollah/utils/__init__.py +++ b/src/eynollah/utils/__init__.py @@ -1508,7 +1508,7 @@ def return_boxes_of_images_by_order_of_reading_new( * splitter_y_new: the y coordinates separating the parts * regions_without_separators: (text) region mask with separators suppressed; (needed to find per-part columns and to combine separators if possible) - * regions_with_separators: (full) region map with separators suppressed; + * regions_with_separators: (full) region map with separators included; (needed to elongate separators if possible) * matrix_of_seps: type and coordinates of horizontal and vertical separators, as well as headings @@ -1525,6 +1525,7 @@ def return_boxes_of_images_by_order_of_reading_new( if right2left_readingorder: regions_without_separators = cv2.flip(regions_without_separators,1) + regions_with_separators = cv2.flip(regions_with_separators,1) if logger is None: logger = getLogger(__package__) logger.debug('enter return_boxes_of_images_by_order_of_reading_new')