Compare commits
1 Commits
patch_cust
...
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,
|
||||
@ -128,13 +128,8 @@ while cap.isOpened():
|
||||
# 在这里修改 person_1, person_2 ... 的名字
|
||||
# 可以在这里改称 Jack, Tom and others
|
||||
# Here you can modify the names shown on the camera
|
||||
name_namelist[k] = str("Person "+str(int(similar_person_num)+1))\
|
||||
.replace("Person 1", "Sherry")\
|
||||
.replace("Person 2", "Jack")\
|
||||
.replace("Person 3", "Ronnie")\
|
||||
.replace("Person 4", "Terry")\
|
||||
.replace("Person 5", "Wilson")
|
||||
# print("May be person "+str(int(similar_person_num)+1))
|
||||
name_namelist[k] = "Person "+str(int(similar_person_num)+1)
|
||||
print("May be person "+str(int(similar_person_num)+1))
|
||||
else:
|
||||
print("Unknown person")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user