Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurynas Karazija authored and Laurynas Karazija committed Jan 29, 2017
1 parent b9ad95a commit bd5fe22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flask_server/im_receive_serv.py
Expand Up @@ -83,14 +83,14 @@ def proc_face(face):
# time.sleep(3)
# publish_image(face, face, face)
res, conf = is_admin(face)
publish_image(face, np.zeros_like(face), face, conf)
publish_image(face, np.ones_like(face)*255, face, conf)
return res

def proc_face_with_hack(face):
print("MAJOR HACK IN PROGRESS")
for face1, confidence in do_adver(face):
face1 = sanitise_image(face1)
publish_image(face, get_adv(face, face1), face1, confidence)
publish_image(face, get_adv(face, face1), face1, confidence, hack=True)
return proc_face(face1)

@app.route('/')
Expand Down
2 changes: 1 addition & 1 deletion get_face/face_im_capture.py
Expand Up @@ -66,7 +66,7 @@ def main():
# else:
# cv2.rectangle(disp_face, (0, 0), (222, 222), (0,0,255), 2)
cv2.imshow("Face", sub_face)
cv2.imwrite('faces/face_laurynas2_{}.jpg'.format(im_count), sub_face)
cv2.imwrite('faces/face_laurynas3_{}.jpg'.format(im_count), sub_face)
im_count+=1
else:

Expand Down

0 comments on commit bd5fe22

Please sign in to comment.