From 02990255e37480010294cfcb4dba688ccb350053 Mon Sep 17 00:00:00 2001 From: Brandon Amos Date: Sat, 3 Oct 2015 23:46:43 -0400 Subject: [PATCH] Workaround solution for #5: Only use the largest face in the video. --- demos/web/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demos/web/server.py b/demos/web/server.py index 41e88e0..51e2329 100755 --- a/demos/web/server.py +++ b/demos/web/server.py @@ -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)