tolerance 调整
This commit is contained in:
parent
4bc4c8bbc1
commit
493845c1f4
|
@ -30,7 +30,7 @@ class HRMService:
|
||||||
update_all_user_facedata_cache()
|
update_all_user_facedata_cache()
|
||||||
try:
|
try:
|
||||||
results = face_recognition.compare_faces(face_datas,
|
results = face_recognition.compare_faces(face_datas,
|
||||||
unknown_face_encoding, tolerance=0.5)
|
unknown_face_encoding, tolerance=0.48)
|
||||||
except:
|
except:
|
||||||
return None, '人脸匹配失败'
|
return None, '人脸匹配失败'
|
||||||
for index, value in enumerate(results):
|
for index, value in enumerate(results):
|
||||||
|
|
Loading…
Reference in New Issue