VideoCapture.open: Take a long time to open a USB camera.

asked 2019-05-14 07:57:45 -0600

larrydong gravatar image

updated 2019-05-14 11:28:17 -0600

I use VideoCapture class to open a USB camera. Windows10, Visual Studio 2015, Opencv4.0.

VideoCapture cap; cap.open(0);

But the "cap.open(0)" line takes a long time to open my USB camera.

The output of VS is continously "Failed to create ID3D11DeviceContext", and after almost 1 min, it opened the camera successfully.

image description

I have change to another camera, no error occurred. And the same camera on other computer, no error, too. So why this camera on this laptop got trouble? What should be the problem, on computer or camera? Thanks.

edit retag flag offensive close merge delete