Skip to content

Commit

Permalink
increased k largest faces
Browse files Browse the repository at this point in the history
  • Loading branch information
aliizadi committed May 20, 2020
1 parent 7ed42ad commit 7940bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion person-recognition/videos_tracker/centroidtracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __recognize_face(self, face_id):
self.face_encodings = []
self.frames = []

def __get_largest_faces_args(self, face, k=3):
def __get_largest_faces_args(self, face, k=5):
faces_size = [abs(bottom-top) * abs(right-left) for (left, top, right, bottom) in face.rects]
largeset_face_args = np.argsort(faces_size)[::-1][:k]
return largeset_face_args
Expand Down

0 comments on commit 7940bb6

Please sign in to comment.