From 2ab696d69d37836670cdffe04c87f3658a59e787 Mon Sep 17 00:00:00 2001 From: fabrice Date: Tue, 25 Jun 2019 16:09:13 +0000 Subject: [PATCH] Update 'face_recognition/app/app.py' --- face_recognition/app/app.py | 1 + 1 file changed, 1 insertion(+) 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: