从网络摄像机捕获实时图像
从网络 IP 摄像机捕获流式 MJPEG 的最佳方法是什么?
我想使用 c++ (或用 c++ 扩展的 python)获取帧并处理它们。
OpenCV 是我的最佳选择吗?
What is the best way to capture streamed MJPEG from a network IP camera?
I'd like to get frames and process them, using c++ (or python extended with c++).
Is OpenCV my best option?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了 OpenCV 之外,您还可以使用 mplayer 和 -vo yuv4mpeg 重定向到管道来获取未压缩的 yuv 图像流。您可以从 C++ 创建 mplayer 进程和管道。
另一种方法是使用 RTSP 库(您的 IP 摄像机可能使用它作为协议)
Appart from OpenCV, you can use mplayer with -vo yuv4mpeg redirected to a pipe to get a stream of uncompressed yuv images. You can create the mplayer process and pipe from C++.
Another way is to use a RTSP library (your IP camera probably uses it as protocol)