How does one enumerate cameras?

asked 2013-10-19 19:03:58 -0600

Chris Mayer gravatar image

How do i get a simple list of how many cameras are currently available? The only response I've seen so far is to "guess with random ID values." This is not good coding practice. The other answers seem to say that only earlier versions supported this. I also see a 3 year old open ticket to add this feature. I am using Visual Studio 2012 with C++. Thank you, Chris

edit retag flag offensive close merge delete

Comments

afaik, there is still no such thing in opencv

berak gravatar imageberak ( 2013-10-20 04:38:48 -0600 )edit

For future readers: EnumerateCameras function in my answer should help

pklab gravatar imagepklab ( 2015-12-21 02:58:23 -0600 )edit