create new tag
view all tags

Installing OpenCV 2.3.1

I found this website that gives a detailed walk through of a complete (including ffmpeg) installation of OpenCV 2.3.1. I've tried it on Bot 119 and it works fine. The sample codes and the diagnostic codes compile and work. However, step 2 on this site does not work, so after doing step 1, do steps 2 and 3 on this site, then go back and continue on from step 3 from the original one.

Working with OpenCV 2.3.1

If you get an issue where the resolution of the image returned by the camera is very low, you can fix it by putting in the following two lines after you initialize your CvCapture* object in your code:

cvSetCaptureProperty( <name of CvCapture* object>, CV_CAP_PROP_FRAME_WIDTH, 400 );
cvSetCaptureProperty( <name of CvCapture* object>, CV_CAP_PROP_FRAME_HEIGHT, 300 );

A working example can be found in the camCapture code in the diagnosticCode folder of robot110.

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2012-03-07 - EmirOgel
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback