refactoring

This commit is contained in:
Matthias Bisping 2022-02-06 14:26:16 +01:00
parent 504cafbd5d
commit fed3a7e4f1

View File

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