Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array_data_type = image.dtype.name
- array_shape = image.shape
- to_send = array_data_shape + SEPARATOR + cPickle.dumps(array_shape) + SEPARATOR + image.tobytes()
- streaming_socket.sendall(to_send)
- to_send = SEPARATOR.join([array_data_shape, cPickle.dumps(array_shape), image.tobytes()])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement