Update 'face_recognition/app/app.py'
This commit is contained in:
		@@ -53,6 +53,11 @@ def check_face():
 | 
			
		||||
    minioClient.fget_object('uploads', upload_id, '/tmp/'+str(upload_id))
 | 
			
		||||
    face = face_recognition.load_image_file('/tmp/'+str(upload_id))
 | 
			
		||||
    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):
 | 
			
		||||
    #return True -> id bereits verwendet
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user