1 | initial version |
wow!! I'm lost in the doc.
I found that CV_CAP_DSHOW
and CV_CAP_VFW
are available in 2.4.11 C Api too. In 3.0.0, CPP Api provides CAP_DSHOW
and CAP_VFW
(some refs to old CV_CAP_* still here).
Now I know that:
VideoCapture cap(0 + CV_CAP_VFW); // opens cam 0 with platform native
VideoCapture cap(0 + CV_CAP_DSHOW); // opens cam 0 with DirectShow (via videoInput)
VideoCapture cap(0 ); // opens cam 0 with with default driver maybe one of above
this works with 2.4.10 too
Just to know...On my computer if I use VideoCapture cap(0 + CV_CAP_DSHOW);
I can set some props via cap.set(CV_CAP_PROP_*
that doesn't have effect when I use VideoCapture cap(0 + CV_CAP_VFW);
One of this is CAP_PROP_SETTINGS that shows the driver's property page but also CV_CAP_PROP_FPS is effective and it has effect on grab loop! this is completely different from what I said in a my recent answer :(
It's never to late to learn something !