Update 'face_recognition/app/app.py'
This commit is contained in:
parent
a7a3f30060
commit
a4faf438e6
@ -53,6 +53,11 @@ def check_face():
|
|||||||
minioClient.fget_object('uploads', upload_id, '/tmp/'+str(upload_id))
|
minioClient.fget_object('uploads', upload_id, '/tmp/'+str(upload_id))
|
||||||
face = face_recognition.load_image_file('/tmp/'+str(upload_id))
|
face = face_recognition.load_image_file('/tmp/'+str(upload_id))
|
||||||
face_encoding = face_recognition.face_encodings(face)[0]
|
face_encoding = face_recognition.face_encodings(face)[0]
|
||||||
|
minioClient.fget_object('users', str(id), '/tmp/'+str(id))
|
||||||
|
with open('/tmp/'+str(id), 'rb') as file:
|
||||||
|
face2 = pickle.load(file)
|
||||||
|
face2_encoding = face_recognition.face_encodings(face2)[0]
|
||||||
|
|
||||||
|
|
||||||
def check_id(id):
|
def check_id(id):
|
||||||
#return True -> id bereits verwendet
|
#return True -> id bereits verwendet
|
||||||
|
Loading…
Reference in New Issue
Block a user