2

What is the best way to pass a cv::Mat across a Network (TCP/UDP) and reconstruct it on the server? Any ideas? e.g. Put it in a string or any specific data-structure?

garak
  • 4,713
  • 9
  • 39
  • 56

1 Answers1

2

The same way you use to transfer any other kind of data.

It's also worth checking this post: Passing a structure through Sockets in C

Community
  • 1
  • 1
karlphillip
  • 92,053
  • 36
  • 243
  • 426