Can’t access webcam with OpenCV

I had the same issue on Windows 7 64-bit. I had to recompile opencv_highgui changing the “Preprocesser Definitions” in the C/C++ panel of the properties page to include:

HAVE_VIDEOINPUT
HAVE_DSHOW

Hope this helps

Leave a Comment