1 Commits

Author SHA1 Message Date
c277dbbd48 Update face_reco_from_camera.py 2019-04-26 10:55:09 +08:00

View File

@ -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()
cv2.destroyAllWindows()