refactoring
This commit is contained in:
parent
504cafbd5d
commit
fed3a7e4f1
@ -34,7 +34,7 @@ def remove_primary_text_regions(image):
|
|||||||
def filter_likely_primary_text_segments(cnts):
|
def filter_likely_primary_text_segments(cnts):
|
||||||
for c in cnts:
|
for c in cnts:
|
||||||
area = cv2.contourArea(c)
|
area = cv2.contourArea(c)
|
||||||
if area > 800 and area < 15000:
|
if 800 < area < 15000:
|
||||||
yield cv2.boundingRect(c)
|
yield cv2.boundingRect(c)
|
||||||
|
|
||||||
image = image.copy()
|
image = image.copy()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user