What is the opposite function of tobytes()?
Try this: x = np.frombuffer(n, dtype=i.dtype)
I need a function to turn bytes back to a numpy array. Is there a simple way to do it?
Pickle doesn't work because my data is too long and everything else I tried fails as well... I'm trying to send a frame over a socket from my client to my server.