修改face login to
This commit is contained in:
parent
c3c4a2e803
commit
bc0d6b47f7
|
@ -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.48)
|
unknown_face_encoding, tolerance=0.49)
|
||||||
except:
|
except:
|
||||||
return None, '人脸匹配失败'
|
return None, '人脸匹配失败'
|
||||||
for index, value in enumerate(results):
|
for index, value in enumerate(results):
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd /home/lighthouse/hberp/hb_server
|
|
||||||
source venv/bin/activate
|
|
||||||
exec gunicorn -w 5 -b 0.0.0.0:2223 server.wsgi
|
|
Loading…
Reference in New Issue