From 8a367cc67384884cdae7b42bc5f4e8f263e2a8b6 Mon Sep 17 00:00:00 2001 From: Vesa Halenius <vesa.m.halenius@utu.fi> Date: Fri, 23 Feb 2018 23:26:21 +0200 Subject: [PATCH] Update sbs_client2.py --- client/sbs_client2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/sbs_client2.py b/client/sbs_client2.py index 42ba7f0..0dc0bbf 100644 --- a/client/sbs_client2.py +++ b/client/sbs_client2.py @@ -28,7 +28,7 @@ def sendImage(image): } ) - response = requests.post("http://tensorflow.stop.capstone.utu.fi/api/v1/classifyImage/", data=multipart_data, + requests.post("http://tensorflow.stop.capstone.utu.fi/api/v1/classifyImage/", data=multipart_data, headers={"Content-Type": multipart_data.content_type}) # Removing image for security purposes @@ -46,7 +46,7 @@ def takePicture(image, face_cascade): # Locate faces image = cv2.imread(image) gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) - faces = face_cascade.detectMultiScale( + faces = face_cascade.detectMultiScale( gray, scaleFactor=1.1, minNeighbors=5, -- GitLab