Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. array_data_type = image.dtype.name
  2. array_shape = image.shape
  3. to_send = array_data_shape + SEPARATOR + cPickle.dumps(array_shape) + SEPARATOR + image.tobytes()
  4. streaming_socket.sendall(to_send)
  5.  
  6. to_send = SEPARATOR.join([array_data_shape, cPickle.dumps(array_shape), image.tobytes()])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement