OpenCV for ARM (Beagleboard) 使用 YUYV 而不是 JPEG 压缩?
我在 Ubuntu 下使用网络摄像头在 Beagleboard xM 上运行 OpenCV。网络摄像头运行良好,但仅限于 YUYV 模式。即,使用 jpeg 压缩的 luvcview 有许多帧被半截断、颜色不正确等。但是 luvcview -f YuYV 工作正常。
是否可以禁用 OpenCV 的 jpeg 压缩?
我尝试使用 make 选项构建和安装 openCV:--without-jpeg,但需要 4 小时才能完成 make 和 make install,并且通常在完成 90% 以上时崩溃。
有没有办法为 ARM 交叉编译这个无 jpeg 版本的 OpenCV,或者使用预构建的安装包禁用 jpeg?
make install 期间出错:
[ 95%] 构建 CXX 对象测试/cv/CMakeFiles/opencv_test.dir/src/amoments.o 链接 CXX 可执行文件../../bin/opencv_test CMakeFiles/opencv_test.dir/src/highguitest.o:在函数 `CV_HighGuiTest::run(int)' 中:
...等
../../lib/libopencv_features2d.so.2.2.0:对 的未定义引用cv::SIFT;:SIFT(double, bool bool, int, int, int, int))
...等
collect2:ld返回1退出状态 make[2]: * [bin/opencv_test] 错误 1 make[1]: * [tests/cv/CMakeFiles/opencv_test.dir/all] 错误 2 make: * [全部] 错误 2 (回到bash)
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有同样的问题。这可能会有所帮助: http://tech.groups.yahoo.com/group/OpenCV /message/77273
您可以在modules/features2d/src/sift.cpp中启用SIFT。您可以在文件中搜索#ifdef arm。注释 sift.cpp 中的第 51-53 行,例如: //#define ARM_NO_SIFT
另外,如果您使用的是 beagle,则需要使用 -DWITH_JPEG=OFF 选项运行 cmake。
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.