extracting ocr textline images and text: vertical lines threshold has changed to 1.4

This commit is contained in:
vahidrezanezhad 2026-02-10 14:32:23 +01:00
parent a57914a68a
commit ab43477451

View file

@ -115,7 +115,7 @@ def linegt_cli(
x, y, w, h = cv2.boundingRect(coords) 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 img_crop = None
continue continue
@ -191,7 +191,7 @@ def linegt_cli(
x, y, w, h = cv2.boundingRect(textline_coords) 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 img_crop = None
continue continue