Can't access webcam with OpenCV

后端 未结 8 1147
死守一世寂寞
死守一世寂寞 2020-11-29 10:11

I\'m using OpenCV 2.2 with visual studio 2010 on a win 7 64 bit pc.

I\'m able to display pictures and play AVI files through OpenCV as given in the book \"Learning O

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 10:23

    CMAKE GUI, MSVC++10E, Vista 32bit, OpenCV2.2

    It looks like HAVE_VIDEOINPUT/WITH_VIDEOINPUT option doesn't work.

    However adding: /D HAVE_DSHOW /D HAVE_VIDEOINPUT to CMAKE_CXX_FLAGS, and CMAKE_C_FLAGS did the trick for me (there will be warns due to macro redefinitions).

提交回复
热议问题