skywrace

chore: Test selecting 'eye' and 'mouth' landmarks from predictor

......@@ -64,8 +64,14 @@ def main():
shape = predictor(gray, rect)
shape = face_utils.shape_to_np(shape)
# Draw on our image, all the finded cordinate points (x,y)
for (x, y) in shape:
r_eye = shape[36:43]
l_eye = shape[42:48]
mouth = shape[48:69]
for (x, y) in l_eye:
cv2.circle(frame, (x, y), 2, (0, 255, 0), -1)
for (x, y) in r_eye:
cv2.circle(frame, (x, y), 2, (0, 255, 0), -1)
for (x, y) in mouth:
cv2.circle(frame, (x, y), 2, (0, 255, 0), -1)
both_eyes_closed = False
......