如何在opencv 2.1中使用basler ip摄像头抓取视频序列?

发布于 2024-12-19 03:09:06 字数 161 浏览 0 评论 0原文

我无法通过网络摄像机进行流式传输,因为它说它返回 null。 它警告说:

Error opening file c:\user\vp\ocv\opencv\src\highgui\cvcap_ffmpeg.cpp:452

希望有人能帮助我。

I could not stream over the ip camera because it say it return null.
It stated warning:

Error opening file c:\user\vp\ocv\opencv\src\highgui\cvcap_ffmpeg.cpp:452

hope someone can help me with it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

浅忆流年 2024-12-26 03:09:06

您无法直接从 IP 摄像机检索 OpenCV 的图像数据。您需要通过 Pylon API 访问原始数据(get char* data),然后复制到 iplimage->imageData

然后你可以用 OpenCV 抓取每一帧,但不要使用 ffmpeg,尝试 VideoForWindows (vfw),它更容易使用,并且 OpenCV 出现的问题也更少。

您收到的错误是由于 ffmpeg 尝试查找您选择的编解码器或配置不正确造成的一些问题。

You cannot retrieve image data from OpenCV directly from IP cameras. You need to acces raw data through the Pylon API (get char* data), and then copy to iplimage->imageData.

Then you could grab every frame with OpenCV, but don't use ffmpeg, try VideoForWindows (vfw), it's easier to use and give less problems with OpenCV.

The error you're getting is due to some problems ffmpeg trying to find the codec you selected, or an incorrect configuration.

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