Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. img = cv2.imdecode(np.fromstring(f.read(), np.uint8), 1)
  2. img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
  3. input_data.input = base64.b64encode(zlib.compress(cPickle.dumps(img, 2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement