OpenCV + Webcam compatibility

后端 未结 3 1155
有刺的猬
有刺的猬 2021-01-25 16:32

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

相关标签:
3条回答
  • 2021-01-25 17:02

    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.

    0 讨论(0)
  • 2021-01-25 17:06

    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).

    0 讨论(0)
  • 2021-01-25 17:06

    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.

    0 讨论(0)
提交回复
热议问题