Take a long time to open a USB camera.

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

larrydong gravatar image

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

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

VideoCapture cap;;

But the "" 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