alseambusher

facenet1

Jan 11th, 2018
14,537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. def read_img(path):
  2.     img1 = cv2.imread(path, 1)
  3.     img = img1[...,::-1]
  4.     return np.around(np.transpose(img, (2,0,1))/255.0, decimals=12)
  5.  
  6. attacker = read_img("images/camera_2.jpg")
  7. target = read_img("images/kian.jpg")
Add Comment
Please, Sign In to add comment