OpenCV +网络摄像头兼容性

发布于 2024-12-10 01:07:10 字数 217 浏览 1 评论 0原文

对于有 OpenCV 使用经验的人来说,是否有任何网络摄像头不支持 OpenCV。

我正在研究一个项目的可行性,并且我知道我将需要高质量的源(1080p),因此我将需要一个能够实现这一点的网络摄像头。那么 OpenCV 对某些相机有问题吗?

要动态分析该分辨率的视频源,我需要一个快速处理器,我知道这一点,但我需要一台非消费者可用的机器……也就是说,i7 可以吗?

谢谢。

For the people that have experience with OpenCV, are there any webcams that don't work with OpenCV.

I am looking into the feasibility of a project and I know I am going to need a high quality feed (1080p), so I am going to need a webcam that is capable of that. So does OpenCV have problems with certain cameras?

To be analysing a video feed of that resolution on the fly I am going to need a fast processor, I know this, but will I need a machine that is not consumer available...ie, will an i7 do?

Thanks.

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

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

发布评论

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

评论(3

離殇 2024-12-17 01:07:10

在 Linux 上,如果 v4l2 支持,它可能会工作(例如,我的家庭网络摄像头未列出,但它与 v4l2 兼容并且开箱即用)。您始终可以使用相机制造商的驱动程序来获取帧,并将它们提供给您的 OpenCV 代码。您甚至可以对 VideoCapture 类进行子类化,并实现您的相机驱动程序以使其与 OpenCV 无缝协作。

我认为最新的 i7 系列应该可以正常工作。您可能还想查看英特尔的 IPP 库以了解更多信息优化的例程。 IPP 还可以轻松集成到 OpenCV 代码中,因为 OpenCV 最初是一个 Intel 项目。

如果您需要真正快速的图像处理,您可能需要考虑在盒子中添加高性能 GPU,以便您可以使用该选项。

On Linux, if it's supported by v4l2, it is probably going to work (e.g., my home webcam isn't listed, but it's v4l2 compatible and works out of the box). You can always use the camera manufacturer's driver to acquire frames, and feed them to your OpenCV code. You can even sub-class the VideoCapture class, and implement your camera driver to make it work seamlessly with OpenCV.

I would think the latest i7 series should work just fine. You may want to also check out Intel's IPP library for more optimized routines. IPP also easily integrates into OpenCV code since OpenCV was an Intel project at its inception.

If you need really fast image processing, you might want to consider adding a high performance GPU to the box, so that you have that option available to you.

月寒剑心 2024-12-17 01:07:10

不幸的是,我要引用的页面不再存在。自从我在 2011 年第一次写这个答案以来,OpenCV 已经发展了很多,他们很难跟踪市场上哪些相机受 OpenCV 支持。

无论如何,这是支持的旧列表按操作系统组织的摄像机(此列表直到 2013 年初才可用)。

Unfortunately, the page that I'm about to reference doesn't exist anymore. OpenCV evolved a lot since I first wrote this answer in 2011 and it's difficult for them to keep track of which cameras in the market are supported by OpenCV.

Anyway, here is the old list of supported cameras organized by Operating System (this list was available until the beginning of 2013).

鹤仙姿 2024-12-17 01:07:10

这取决于你的相机是否支持OpenCV,主要取决于你的相机所使用的驱动程序模型。

引用自OpenCV 捕获入门

目前,Windows 上可以使用两个摄像头接口:Video for Windows (VFW) 和 Matrox Imaging Library (MIL),Linux 上可以使用两个摄像头接口:Video for Linux(V4L) 和 IEEE1394。对于后者,存在两个实现的接口(CvCaptureCAM_DC1394_CPP 和 CvCapture_DC1394V2)。

因此,如果您的相机在 Windows 下兼容 VFWMIL 或适合标准 V4LIEEE1394< /code> 驱动程序模型,那么它可能会起作用。

但如果没有,就像 mevatron 所说,您甚至可以对 VideoCapture 类进行子类化,并实现您的相机驱动程序以使其成为可能与 OpenCV 无缝协作。

It depends if your camera is supported by OpenCV, mainly by the driver model that your camera is using.

Quote from Getting Started with OpenCV capturing,

Currently two camera interfaces can be used on Windows: Video for Windows (VFW) and Matrox Imaging Library (MIL) and two on Linux: Video for Linux(V4L) and IEEE1394. For the latter there exists two implemented interfaces (CvCaptureCAM_DC1394_CPP and CvCapture_DC1394V2).

So if your camera is VFW or MIL compliant under Windows or suits into standard V4L or IEEE1394 driver model, then probably it will work.

But if not, like mevatron says, you can even sub-class the VideoCapture class, and implement your camera driver to make it work seamlessly with OpenCV.

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