Workaround solution for #5: Only use the largest face in the video.
This commit is contained in:
parent
dc7b050423
commit
02990255e3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue