Ask Your Question

Cemow's profile - activity

2016-06-22 05:52:02 -0600 commented question cap.set property is not working in C++

I solved the problem as @Major Squirrel mentioned I checked the cameras fps properties with v4l2-ctl and got it that it has only 30 fps in all formats. Also as I saw from v4l2-ctl I tried to use one of the particular camera dimensions and it worked well.

Thank you very much to all of you, @kbarni, @LBerger, @Major Squirrel

2016-06-22 02:19:08 -0600 commented question cap.set property is not working in C++

@LBerger it is camera.

2016-06-22 01:30:53 -0600 commented question cap.set property is not working in C++

@LBerger it does not work, I mean it doesn't change, the "set" property doesn't change anything. "cap" is Videocapture class variable.

@kbarni, I am using ubuntu 14.04. libv4l-dev is already installed.

2016-06-21 09:06:53 -0600 asked a question cap.set property is not working in C++

While cap.get property is working, I used cap.set property in a simple code but it doesn't seem to be working:

cap.set(CV_CAP_PROP_FPS, 60);
cap.set(CV_CAP_PROP_FRAME_HEIGHT, 360.0);

for(;;)
{
    cap >> frame;
    if( frame.empty() ) break; // end of video stream
    imshow("Display Window",frame);

    if( waitKey(1) == 27 ) break; // stop capturing by pressing ESC
}
waitKey();
return 0;

Any ideas, am I missing something here?

Thanks.