Difference: OpenCV231 ( vs. 1)

Revision 12015-11-10 - TWikiGuest

Line: 1 to 1
META TOPICPARENT name="FRCVLabMaintenance"

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.

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback