Skip to content

Commit

Permalink
Update facial_recognition.py
Browse files Browse the repository at this point in the history
  • Loading branch information
richmondu authored Aug 24, 2019
1 parent 7846004 commit 36fdf47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions facial_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def process_facerecognition(cam_resolution, out_resolution, framecount, image=No

def process_facerecognition_livenessdetection_poseagegenderemotion(cam_resolution, out_resolution, framecount, image=None, model_detector=0, model_recognizer=0):

from libfaceid.liveness import FaceLivenessDetectorModels, FaceLiveness
from libfaceid.liveness import FaceLivenessModels, FaceLiveness
from libfaceid.pose import FacePoseEstimatorModels, FacePoseEstimator
from libfaceid.age import FaceAgeEstimatorModels, FaceAgeEstimator
from libfaceid.gender import FaceGenderEstimatorModels, FaceGenderEstimator
Expand Down Expand Up @@ -380,7 +380,7 @@ def process_facerecognition_livenessdetection_poseagegenderemotion(cam_resolutio
# EYE BLINKING DETECTOR
###############################################################################
# Initialize detector for blinking eyes
face_liveness = FaceLiveness(model=FaceLivenessDetectorModels.EYEBLINKING, path=INPUT_DIR_MODEL_ESTIMATION)
face_liveness = FaceLiveness(model=FaceLivenessModels.EYEBLINKING, path=INPUT_DIR_MODEL_ESTIMATION)
face_liveness.initialize()
(eye_counter, total_eye_blinks) = (0, 0)

Expand Down

0 comments on commit 36fdf47

Please sign in to comment.