Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def read_img(path):
- img1 = cv2.imread(path, 1)
- img = img1[...,::-1]
- return np.around(np.transpose(img, (2,0,1))/255.0, decimals=12)
- attacker = read_img("images/camera_2.jpg")
- target = read_img("images/kian.jpg")
Add Comment
Please, Sign In to add comment