OpenCV + Webcam compatibility

后端 未结 3 1158
有刺的猬
有刺的猬 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: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.

提交回复
热议问题