fix: 还是使用face_recongnition2
This commit is contained in:
parent
96d83e0b49
commit
beea6f3f54
|
@ -265,7 +265,7 @@ class FaceLoginView(CreateAPIView):
|
|||
"""
|
||||
from apps.hrm.services import HrmService
|
||||
base64_data = base64.urlsafe_b64decode(tran64(request.data.get('base64').replace(' ', '+')))
|
||||
ep, msg = HrmService.face_find_from_base64(base64_data)
|
||||
ep, msg = HrmService.face_compare_from_base64(base64_data)
|
||||
if ep:
|
||||
if ep.user and ep.user.is_active and ep.user.is_deleted is False:
|
||||
user = ep.user
|
||||
|
|
|
@ -30,4 +30,5 @@ xlwt==1.3.0
|
|||
openpyxl==3.1.0
|
||||
cron-descriptor==1.2.35
|
||||
pymysql==1.0.3
|
||||
face-recognition==1.3.0
|
||||
# deepface==0.0.79
|
||||
|
|
Loading…
Reference in New Issue