I am experimenting with the following code on the raspberry pi:
https://code.ros.org/trac/opencv/browser/trunk/opencv/samples/cpp/camshiftdemo.cpp?rev=4234
and I would like to do the recommendations from this thread:
Getting better performance using OpenCV?
Specifically, how do I perform #1 - #4 in the link above?
Looking at this site:
I have attempted to do the following:
cap.set(CV_CAP_PROP_FRAME_WIDTH, 320);
cap.set(CV_CAP_PROP_FRAME_WIDTH, 240);
cout << "width = " << cap.get(CV_CAP_PROP_FRAME_WIDTH) << endl;
cout << "height = " << cap.get(CV_CAP_PROP_FRAME_HEIGHT) << endl;
However the output always says 640 and 480 for width and height. Am I missing something big here?
I am using OpenCV 2.3.1