From 96ddc93107bb817f34d20a72a2843e7839311096 Mon Sep 17 00:00:00 2001 From: fabrice Date: Tue, 25 Jun 2019 17:03:13 +0000 Subject: [PATCH] Update 'face_recognition/app/app.py' --- face_recognition/app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/face_recognition/app/app.py b/face_recognition/app/app.py index 636c9cf..5252ca7 100644 --- a/face_recognition/app/app.py +++ b/face_recognition/app/app.py @@ -48,7 +48,7 @@ def new_face(): face_encoding_response = encode_face(temporary_img_path) if face_encoding_response['success']==True: with open(temporary_pkl_path, 'wb') as file: - pickle.dump(face_encoding, file) + pickle.dump(face_encoding_response['encoding'], file) minioClient.fput_object('users', str(id), temporary_pkl_path) return jsonify({'success':face_encoding_response['success']})