diff --git a/face_reco_from_camera.py b/face_reco_from_camera.py index c0ad802..885e45d 100755 --- a/face_reco_from_camera.py +++ b/face_reco_from_camera.py @@ -48,7 +48,7 @@ print("Faces in Database:", len(features_known_arr)) # Dlib 检测器和预测器 # The detector and predictor will be used detector = dlib.get_frontal_face_detector() -predictor = dlib.shape_predictor('data/data_dlib/shape_predictor_68_face_landmarks.dat') +predictor = dlib.shape_predictor('data/data_dlib/shape_predictor_5_face_landmarks.dat') # 创建 cv2 摄像头对象 # cv2.VideoCapture(0) to use the default camera of PC, @@ -158,4 +158,4 @@ while cap.isOpened(): cap.release() # 删除建立的窗口 delete all the windows -cv2.destroyAllWindows() \ No newline at end of file +cv2.destroyAllWindows()