OpenCV +网络摄像头兼容性
对于有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 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.
不幸的是,我要引用的页面不再存在。自从我在 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).
这取决于你的相机是否支持OpenCV,主要取决于你的相机所使用的驱动程序模型。
引用自OpenCV 捕获入门,
因此,如果您的相机在
Windows
下兼容VFW
或MIL
或适合标准V4L
或IEEE1394< /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,
So if your camera is
VFW
orMIL
compliant underWindows
or suits into standardV4L
orIEEE1394
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.