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()