如何通过网络传递 cv::Mat?
通过网络(TCP/UDP)传递 cv::Mat 并在服务器上重建它的最佳方法是什么?有什么想法吗?例如,将其放入字符串或任何特定的数据结构中?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与传输任何其他类型数据的方式相同。
这篇文章也值得查看:Passing a Structure through Sockets in C
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