Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
richmondu committed Jan 22, 2019
1 parent 233a242 commit efddbc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing_webcam_livenessdetection.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def process_livenessdetection(model_detector, model_recognizer, model_liveness,
# Check if eyes are close and if mouth is open
eyes_close, eyes_ratio = face_liveness.is_eyes_close(frame, face)
mouth_open, mouth_ratio = face_liveness.is_mouth_open(frame, face)
#print("mouth_open={}, mouth_ratio={:.2f}".format(mouth_open, mouth_ratio))
print("eyes_close={}, eyes_ratio ={:.2f}".format(mouth_open, mouth_ratio))
print("mouth_open={}, mouth_ratio={:.2f}".format(mouth_open, mouth_ratio))

# Detect if frame is a print attack or replay attack based on colorspace
is_fake_print = face_liveness2.is_fake(frame, face)
Expand Down

0 comments on commit efddbc3

Please sign in to comment.