You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make an app that sends a stream of images to the server from webcam
and I made those scripts to mimic the process by sending an array of 400x300x3 as image
but I got this error
ValueError: Too many packets in payload
client
importsocketioimporttimeimportnumpyasnpimportpicklearr=np.random.randn(400,300,3)
arr=pickle.dumps(arr)
sio=socketio.Client()
@sio.eventdefconnect():
print('connection established')
@sio.eventdefmy_message(data):
print('message received with ', data)
sio.emit('my response', {'response': 'my response'})
@sio.eventdefdisconnect():
print('disconnected from server')
sio.connect('http://localhost:5000')
whileTrue:
# time.sleep(0.001)sio.emit("message",arr)
sio.wait()
I'm trying to make an app that sends a stream of images to the server from webcam
and I made those scripts to mimic the process by sending an array of 400x300x3 as image
but I got this error
ValueError: Too many packets in payload
client
server
The text was updated successfully, but these errors were encountered: