Web Demo: Use outer eyes and nose.

This commit is contained in:
Brandon Amos 2016-01-11 10:31:35 -05:00
parent 2a3f0efed2
commit 1de080d65b
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ class OpenFaceServerProtocol(WebSocketServerProtocol):
tr = (bb.right(), bb.top())
cv2.rectangle(annotatedFrame, bl, tr, color=(153, 255, 204),
thickness=3)
for p in [39, 42, 57]:
for p in openface.AlignDlib.OUTER_EYES_AND_NOSE:
cv2.circle(annotatedFrame, center=landmarks[p], radius=3,
color=(102, 204, 255), thickness=-1)
if identity == -1: