Skip to content
Snippets Groups Projects
Commit 477657e1 authored by Vesa Halenius's avatar Vesa Halenius
Browse files

Update sbs_client.py

parent f9636cfa
No related branches found
No related tags found
No related merge requests found
......@@ -45,20 +45,8 @@ def takePicture():
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gray, 1.3, 5)
for (x,y,w,h) in faces:
cv2.rectangle(frame,(x,y),(x+w,y+h),(255,0,0),2)
roi_gray = gray[y:y+h, x:x+w]
roi_color = frame[y:y+h, x:x+w]
x = 0
y = 20
text_color = (0,255,0)
cv2.imwrite(image,frame)
cap.release()
# cv2.destroyAllWindows()
takePicture()
sendImage()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment