Workaround solution for #5: Only use the largest face in the video.

This commit is contained in:
Brandon Amos 2015-10-03 23:46:43 -04:00
parent dc7b050423
commit 02990255e3
1 changed files with 3 additions and 1 deletions

View File

@ -260,7 +260,9 @@ class FaceNetServerProtocol(WebSocketServerProtocol):
# return
identities = []
bbs = align.getAllFaceBoundingBoxes(rgbFrame)
# bbs = align.getAllFaceBoundingBoxes(rgbFrame)
bb = align.getLargestFaceBoundingBox(rgbFrame)
bbs = [bb] if bb is not None else []
for bb in bbs:
# print(len(bbs))
alignedFace = align.alignImg("affine", 96, rgbFrame, bb)