I have got an object detection which reads an input image and runs the inference then it outputs the classIDs[]
(class name) and confidence levels of the detected object confidences[]
.
Could you please tell me how can I communicate the output ... from deep learning system?
May use a socket.send( pickle.dumps( [ classIDs[i], confidences[i], ] ) )
Both the first O/P-topic creeping comment, posted 15 minutes after this answer did answer the O/P-problem definition (and was deleted later) and also the second O/P-topic creeping comment, posted about an hour after a due answer was in-place, did not change the game :
whatever you try to pass over the ZeroMQ channel has to be SER/DES-handled. If willing to make things complex, ok, it still goes the same way :
socket.send( pickle.dumps( <whateverBLOBneeded> ) )
If starting to have new problems, due to SER/DES-collisions ( as object-instances and Class()-es have so often in attempts to have them pickle
'd ), feel free to try to salvage the so often Exceptions "vomiting" pickle
module with : import dill as pickle
a smarter SER/DES dill
module from Mike McKerns and, again the rest goes the same way :
socket.send( pickle.dumps( <whateverBLOBneeded> ) )
May rather want to prototype with PUSH/PULL
it does not block in a mutual deadlock as all REQ/REP
do.