diff --git a/face_recognition/app/app.py b/face_recognition/app/app.py index 910b82a..7fdea89 100644 --- a/face_recognition/app/app.py +++ b/face_recognition/app/app.py @@ -45,6 +45,7 @@ def new_face(): temporary_img_path = '/tmp/'+str(id)+'.jpg' temporary_pkl_path = '/tmp/'+str(id)+'.pkl' save_img(img, temporary_img_path) + #new method img_path to encoding, inkl error handling face = face_recognition.load_image_file(temporary_img_path) face_encoding = face_recognition.face_encodings(face)[0] with open(temporary_pkl_path, 'wb') as file: