SHARE
TWEET

Untitled

a guest Feb 21st, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top