diff --git a/hb_server/apps/hrm/services.py b/hb_server/apps/hrm/services.py index b5aa956..2727616 100644 --- a/hb_server/apps/hrm/services.py +++ b/hb_server/apps/hrm/services.py @@ -27,7 +27,7 @@ class HRMService: face_datas = cache.get('face_datas') face_users = cache.get('face_users') results = face_recognition.compare_faces(face_datas, - unknown_face_encoding, tolerance=0.38) + unknown_face_encoding, tolerance=0.42) for index, value in enumerate(results): if value: # 识别成功 @@ -56,7 +56,7 @@ class HRMService: face_datas = cache.get('face_datas') face_users = cache.get('face_users') results = face_recognition.compare_faces(face_datas, - unknown_face_encoding, tolerance=0.38) + unknown_face_encoding, tolerance=0.42) for index, value in enumerate(results): if value: # 识别成功 diff --git a/hb_server/media/default/lx.jpg b/hb_server/media/default/lx.jpg new file mode 100644 index 0000000..e070812 Binary files /dev/null and b/hb_server/media/default/lx.jpg differ