Lower overlap threshold.

This commit is contained in:
Emiliana 2020-03-25 23:02:23 +01:00
parent 3f85a44f13
commit 60fb3aac31

View file

@ -53,7 +53,7 @@ def rotate_image(image, a, center):
rotated = cv2.warpAffine(image, M, (w, h))
return rotated
def intersects(r1, r2, amount=0.5):
def intersects(r1, r2, amount=0.3):
area1 = r1[2] * r1[3]
area2 = r2[2] * r2[3]
inter = 0.0