从网络摄像机捕获实时图像

发布于 2024-08-19 00:01:18 字数 109 浏览 15 评论 0原文

从网络 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

栀子花开つ 2024-08-26 00:01:18

除了 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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文