Skip to content

Commit

Permalink
Update face_reco_from_camera.py
Browse files Browse the repository at this point in the history
  • Loading branch information
coneypo committed Apr 26, 2019
1 parent 910ddcf commit 0351cc0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions face_reco_from_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,13 @@ def return_euclidean_distance(feature_1, feature_2):
# 在这里修改 person_1, person_2 ... 的名字
# 可以在这里改称 Jack, Tom and others
# Here you can modify the names shown on the camera
name_namelist[k] = "Person "+str(int(similar_person_num)+1)
print("May be person "+str(int(similar_person_num)+1))
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))
else:
print("Unknown person")

Expand Down Expand Up @@ -158,4 +163,4 @@ def return_euclidean_distance(feature_1, feature_2):
cap.release()

# 删除建立的窗口 delete all the windows
cv2.destroyAllWindows()
cv2.destroyAllWindows()

4 comments on commit 0351cc0

@sandianyiyuan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好,中文名字如何在实时画面上打出来?我运行后在控制台是正常的中文,画面上显示是问号。

@sandianyiyuan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好,中文名字如何在实时画面上打出来?我运行后在控制台是正常的中文,画面上显示是问号。

参考:显示汉字

@Yukiyousa
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请问Dlib人脸识别如何直接实现实时显示中文?

@coneypo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请问Dlib人脸识别如何直接实现实时显示中文?

参考最新的patch

Please sign in to comment.