Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 658 Bytes

readme.md

File metadata and controls

9 lines (6 loc) · 658 Bytes

Sending cv2 images from client to server (and back)

Refs

stackoverflow

##TODO Either reply to the REQ socket after receiving the first image or use another pattern : ZMQ_PAIR, PUSH / PULL, ROUTER / DEALER could all work in your case. Read the documentation to learn about the different pattern.

Also, you don't have to convert your image in a string. You can directly send std::vector<uint8_t>using zmq : you can access the underlying pointer using std::vector::data() and memcpy(message.data(), vector.data(), vector.size()