2

I am running OpenCV on a Beagleboard xM with a webcam under Ubuntu. The webcam runs fine, but only in YUYV mode. I.e., luvcview using jpeg compression has many frames which are half cut-off, incorrect colors etc. But luvcview -f YuYV works perfectly.

Is it possible to disable jpeg compression for OpenCV?

I've tried building and installing openCV with the make option: --without-jpeg, but it takes 4 hours to complete the make and make install and usually crashes at 90%+ completed.

Is there a way to cross-compile this no-jpeg version of OpenCV for ARM, or a way to disable jpeg using pre-built installation packages?

Error during make install:

[ 95%] Building CXX object tests/cv/CMakeFiles/opencv_test.dir/src/amoments.o Linking CXX executable ../../bin/opencv_test CMakeFiles/opencv_test.dir/src/highguitest.o: In function `CV_HighGuiTest::run(int)':

... etc

../../lib/libopencv_features2d.so.2.2.0: undefined reference to cv::SIFT;:SIFT(double, bool bool, int, int, int, int)) ... etc

collect2: ld returned 1 exit status make[2]: * [bin/opencv_test] Error 1 make[1]: * [tests/cv/CMakeFiles/opencv_test.dir/all] Error 2 make: * [all] Error 2 (back to bash)

1
  • Tried tons of different things, many attempts at re-compiling, ended up writing an algorithm to throw out bad frames based on the changing filesize of the STDERR output piped to a file. Horrible hack, but it worked. Feb 7, 2011 at 22:40

1 Answer 1

2

I am having the same issue. This might help: http://tech.groups.yahoo.com/group/OpenCV/message/77273

you can enable SIFT in modules/features2d/src/sift.cpp. you can search for #ifdef arm in the file. commenting the line 51-53 in sift.cpp e.g.: //#define ARM_NO_SIFT

Also if you are using a beagle you'll need to run cmake with the -DWITH_JPEG=OFF option.

1
  • Thanks Aron! I can no longer test on a BeagleBoard, but this looks like it would do the trick. Did it work for you? Apr 20, 2011 at 2:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.