Ask Your Question

Camera Count using OpenCV 2.4

asked 2012-08-29 06:21:31 -0500

Gaurang gravatar image


Please let me know how to code Camera Device Count using OpenCV 2.4.2 I want to count the camera & display with there name.

Please let me know? Thanks


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-08-29 09:30:02 -0500

AlexanderShishkov gravatar image

OpenCV still has no API to enumerate the cameras or get the number of available devices. See this ticket on OpenCV bug tracker for details.

edit flag offensive delete link more

answered 2012-08-29 08:13:10 -0500

sammy gravatar image

updated 2012-08-29 08:13:45 -0500

OpenCV dropped the cvCountCameras() long time ago. It seems that multiple camera input is not the greatest point of the OpenCV lib. After all, it's a computer vision library, not a camera input library.

It seems that this lib (for windows) is preferred among computer enthusiasts as a video input layer. Give it a try.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-08-29 06:21:31 -0500

Seen: 4,559 times

Last updated: Aug 29 '12