richmondu / libfaceid

libfaceid is a research framework for prototyping of face recognition solutions. It seamlessly integrates multiple detection, recognition and liveness models w/ speech synthesis and speech recognition.
MIT License
487 stars 159 forks source link

Issue fixed. File updated to use FaceLivenessModels. #21

Open imaddyx opened 5 years ago

imaddyx commented 5 years ago

Issue fixed. File updated to use FaceLivenessModels.

Originally posted by @richmondu in https://github.com/richmondu/libfaceid/issues/20#issuecomment-524522903

Thanks sir, By changing this in the code we got other errors. The code in Liveness.py is changed i guess and face_liveness = FaceLiveness(model=FaceLivenessModels.EYESBLINK, path=INPUT_DIR_MODEL_ESTIMATION), line 383 gives an error. Replaced the model to "model == FaceLivenessModels.EYESBLINK_MOUTHOPEN:" Then it gives error: face_liveness.initialize() , line 384 That Initialize() not found.

richmondu commented 5 years ago

Ok, will test later. Refer to testing_webcam_livenessdetection.py. This is more updated.