MATLAB: Webcam support problem – on windows xp system

webcam support package

Hi,
This question has been asked by many others on the Blog, but I don't see a resolution. I have the same problem as described below. Please help.
on a new installation of MATLAB R2014a I installed the USB Webcam support package. When I enter
webcamlist in the command window I get the following error message:
Invalid MEX-file 'C:\MATLAB\SupportPackages\R2014a\webcam\webcammex.mexw64': The specified module could not be found. Error in matlab.webcam.internal.Utility.enumerateWebcams (line 21) Error in webcamlist (line 25) [success, camList] = matlab.webcam.internal.Utility.enumerateWebcams;

Best Answer

  • I understand that you are getting an error using the webcamlist command in the command window. The Webcam feature uses Media Foundation libraries, which are supported only on Win 7 or later. This is the reason why 'webcamlist doesn't work on Win XP.
    This has been recorded in the documentation:
    An alternative is to use 'videoinput' with 'winvideo' adaptor (which is available only through Image Acquisition Toolbox). Please find below the documentation link for videoinput.