I guess you need to use separate framework for capturing, like OpenCV (the easy way) or DirectShow (the hard way). OpenCV has beed discussed many times on the forum, just search for threads.
I guess you need to use separate framework for capturing, like OpenCV (the easy way) or DirectShow (the hard way). OpenCV has beed discussed many times on the forum, just search for threads.
Actually I'm using OpenCV! I want to be able to know about each system webcams and in a drop down menu select one of them. In OpenCV I can say the program the id of webcam (0,1,...). I want to choose the webcam from a dropdown and this dropdown provide camera id in the program behind the scene.
I found the solution and because I know it is the question of many users I share my solution:
First of all, for working with camera and webcams, use OpenCV library. There are a lot of tutorials for using OpenCV library inside Qt.
It is completely possible to find how many webcams in the system using OpenCV. In this page you can find out how to do this.
Bookmarks