From ab43477451abbad0a63c838d7c9813c2e8561173 Mon Sep 17 00:00:00 2001 From: vahidrezanezhad Date: Tue, 10 Feb 2026 14:32:23 +0100 Subject: [PATCH] extracting ocr textline images and text: vertical lines threshold has changed to 1.4 --- src/eynollah/training/extract_line_gt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eynollah/training/extract_line_gt.py b/src/eynollah/training/extract_line_gt.py index 6dee4b4..3d508bc 100644 --- a/src/eynollah/training/extract_line_gt.py +++ b/src/eynollah/training/extract_line_gt.py @@ -115,7 +115,7 @@ def linegt_cli( x, y, w, h = cv2.boundingRect(coords) - if exclude_vertical_lines and h > 2 * w: + if exclude_vertical_lines and h > 1.4 * w: img_crop = None continue @@ -191,7 +191,7 @@ def linegt_cli( x, y, w, h = cv2.boundingRect(textline_coords) - if exclude_vertical_lines and h > 2 * w: + if exclude_vertical_lines and h > 1.4 * w: img_crop = None continue