Add 2 new tests, bugfixed in old tests

This commit is contained in:
Vladislav Sovrasov
2016-02-04 17:12:32 +03:00
parent 86868176a2
commit 54c07ba0ff
6 changed files with 428 additions and 7 deletions

View File

@@ -93,9 +93,9 @@ class facedetect_test(NewOpenCVTests):
faces_matches += 1
#check eyes
if len(eyes[i]) == 2:
if intersectionRate(eyes[i][0], testFaces[j][1]) > eps and intersectionRate(eyes[i][1], testFaces[j][2]):
if intersectionRate(eyes[i][0], testFaces[j][1]) > eps and intersectionRate(eyes[i][1] , testFaces[j][2]) > eps:
eyes_matches += 1
elif intersectionRate(eyes[i][1], testFaces[j][1]) > eps and intersectionRate(eyes[i][0], testFaces[j][2]):
elif intersectionRate(eyes[i][1], testFaces[j][1]) > eps and intersectionRate(eyes[i][0], testFaces[j][2]) > eps:
eyes_matches += 1
self.assertEqual(faces_matches, 2)