diff --git a/hb_server/apps/hrm/services.py b/hb_server/apps/hrm/services.py index 027e5f4..05ff485 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.45) + unknown_face_encoding, tolerance=0.46) 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.45) + unknown_face_encoding, tolerance=0.46) for index, value in enumerate(results): if value: # 识别成功