Ask Your Question

Revision history [back]

CV_CAP_PROP_SETTINGS working on opencvsharp not on opencv??

Hello, I've been using opencvsharp and this code works fine:

        VideoCapture capture = new VideoCapture(0);
        capture.Set(37, 1);

where 37 is CV_CAP_PROP_SETTINGS ( not defined in opencvsharps ) and correctly open my webcam configuration window.

Now trying on a cpp project with opencv

VideoCapture capture(0); // open the default camera
if (!capture.isOpened())  // check if we succeeded
    return -1;

capture.set(CV_CAP_PROP_SETTINGS, 1);

open the device, but no configuratin window appears.

Any hint?

click to hide/show revision 2
retagged

updated 2014-09-14 15:39:51 -0600

berak gravatar image

CV_CAP_PROP_SETTINGS working on opencvsharp not on opencv??

Hello, I've been using opencvsharp and this code works fine:

        VideoCapture capture = new VideoCapture(0);
        capture.Set(37, 1);

where 37 is CV_CAP_PROP_SETTINGS ( not defined in opencvsharps ) and correctly open my webcam configuration window.

Now trying on a cpp project with opencv

VideoCapture capture(0); // open the default camera
if (!capture.isOpened())  // check if we succeeded
    return -1;

capture.set(CV_CAP_PROP_SETTINGS, 1);

open the device, but no configuratin window appears.

Any hint?

CV_CAP_PROP_SETTINGS working on opencvsharp not on opencv??

Hello, I've been using opencvsharp and this code works fine:

        VideoCapture capture = new VideoCapture(0);
        capture.Set(37, 1);

where 37 is CV_CAP_PROP_SETTINGS ( not defined in opencvsharps ) and correctly open my webcam configuration window.

Now trying on a cpp project with opencv

VideoCapture capture(0); // open the default camera
if (!capture.isOpened())  // check if we succeeded
    return -1;

capture.set(CV_CAP_PROP_SETTINGS, 1);

open the device, but no configuratin configuration window appears.

Any hint?