I found info that WDM video sources are mapped to VFW through VFW-to-WDM mapper. This shows as "Microsoft WDM Image Capture" VFW driver as enumerated by capGetDriverDescription() function. If you have more than one such source (WDM) you can switch them with capDlgVideoSource() macro in VFW application.
Theoretically it should work. You can use simple VFW application to select different source for "Microsoft WDM Image Capture" driver - i.e. switch between camera and TV tuner.
Main Topics
Browse All Topics





by: mrbluePosted on 2006-06-16 at 12:23:50ID: 16922971
I do not know OpenCV but I have found the following description (http://www.cs.bham.ac.uk/ resources/ courses/ro botics/doc / opencvdoc s/ref/Open CVRef_High gui.htm):
========
========== ===
==========================
cvCaptureFromCAM
Allocates CvCapture structure and binds it to the video camera
CvCapture* cvCaptureFromCAM( int index );index
Index of the camera to be used. If there is only one camera or it does not matter what camera to use, -1 may be passed.
The function cvCaptureFromCAM allocates and initialized the CvCapture structure for reading a video stream from the camera. Currently two camera interfaces can be used: Video for Windows (VFW) and Matrox Imaging Library (MIL). To connect to VFW camera the parameter "index" should be in range 0-10, to connect to MIL camera the parameter "index" should be in range 100-115. If -1 is passed then the function searches for VFW camera first and then for MIL camera.
After the allocated CvCapture structure is not used any more it should be released by cvReleaseCapture function.
==========================
It looks like OpenCV recognizes only VFW (this is what I think you should be interested in) or MIL video sources. So you need VFW driver for your camera (TV Tuner or anything else) to be seen by OpenCV.