调整容忍度

This commit is contained in:
caoqianming 2022-04-22 11:10:32 +08:00
parent e8f5002aa2
commit 6ef6fdc62f
2 changed files with 2 additions and 2 deletions

View File

@ -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:
# 识别成功

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB