From fed3a7e4f1b8b7ca4e14f9e495459c26490fb50b Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Sun, 6 Feb 2022 14:26:16 +0100 Subject: [PATCH] refactoring --- vidocp/figure_detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vidocp/figure_detection.py b/vidocp/figure_detection.py index f063f1a..b5fd38b 100644 --- a/vidocp/figure_detection.py +++ b/vidocp/figure_detection.py @@ -34,7 +34,7 @@ def remove_primary_text_regions(image): def filter_likely_primary_text_segments(cnts): for c in cnts: area = cv2.contourArea(c) - if area > 800 and area < 15000: + if 800 < area < 15000: yield cv2.boundingRect(c) image = image.copy()