Compare commits
1 Commits
2021_11_09
...
for_issue_
| Author | SHA1 | Date | |
|---|---|---|---|
| c277dbbd48 |
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user