• Android OpenCV样例调试+报错处理


      1、OpenCV样例调试:《OpenCV Sample - image-manipulations》
           blog+报错:E/CAMERA_ACTIVITY(17665): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library
                原因:google好多资料后发现少了libnative_camera.so库,我去opencv libs下面看,你会发现有好多版本的此类so文件,
                   ref: D:AndroidprojectOpenCV-2.4.2-android-sdksdk ativelibsarmeabi-v7a
                   http://code.opencv.org/issues/3347
                解决方法:1、将“D:AndroidprojectOpenCV-2.4.2-android-sdksdk ativelibsarmeabi-v7a”中的所有libnative_camera_rXXX.so 实现引用so文件
                      ref:http://www.cnblogs.com/xrwang/p/AndroidStudioImportJarAndSoLibrary.html
           ok ——》仍然出问题: 一执行就黑屏,
               10-08 13:14:44.225: E/CAMERA_ACTIVITY(2946): ||libnative_camera_r2.3.3.so
               10-08 13:14:44.226: E/CAMERA_ACTIVITY(2946): ||libnative_camera_r4.0.3.so
               10-08 13:14:44.227: E/CAMERA_ACTIVITY(2946): ||libnative_camera_r2.2.0.so
               10-08 13:14:44.227: E/CAMERA_ACTIVITY(2946): ||libnative_camera_r3.0.1.so
               10-08 13:14:44.228: E/CAMERA_ACTIVITY(2946): ||libnative_camera_r4.0.0.so
              ref:《android opencv 2.4.2在mtk上跑不起来,大家有没有碰到过这样的》
                http://www.opencv.org.cn/forum.php?mod=viewthread&tid=23138
                
              发现:经努力google后得知可能是libnative_camera_r4.0.3.so和硬体不相容造成。
                 好在运气不错最新版的OpenCV-2.4.10-rc解决了这个问题, 
                 ——>改为调试《D:AndroidprojectOpenCV-2.4.10-android-sdksamples utorial-1-camerapreview》
    2、OpenCV样例调试:《D:AndroidprojectOpenCV-2.4.10-android-sdksamples utorial-1-camerapreview》
              ref:《] Camera(OpenCV)自动对焦和触摸对焦的实现》
                 http://blog.csdn.net/candycat1992/article/details/21617741: 
              ref:《OpenCV4Android+JNI开发快速上手入门》
                 http://www.tuicool.com/articles/mqAj6z 
                ok ——》 blog+download:推荐一本书籍《Mastering OpenCV with Practical Computer Vision Projects》,
                           电子书可以在皮皮书屋下载,原书源码在Github上。该书第一章介绍如何开发一个使用OpenCV的Android项目-Cartoonifer and Skin Changer for Android,这个项目涉及到了OpenCV在Android中的方方面面,采用的是第二种图像数据传递方式,其中他提出了很多可以优化的地方,包括:         
                ok ——》 layout的xml文件报错: rong orientation? No orientation specified, and the default is horizontal, yet this layout has multiple children where at
                              least one has layout_width="match_parent"
                              解决方法:ref:
                              在android:text="就不"时上面老是报错那个错误,是由于你的一行代码还没有加入到<LinearLayout>那个标签中的,只需加上这一行代码即可解决这个难题
                                android:orientation="horizontal"
                ok ——》 layout的xml文件节点“org.opencv.android.JavaCameraView ”报错:“error: Error parsing XML: unbound prefix”
                    解决方法:加入以下,参考:http://www.tuicool.com/articles/mqAj6z 
                              xmlns:tools="http://schemas.android.com/tools"
                         xmlns:opencv="http://schemas.android.com/apk/res-auto"

  • 相关阅读:
    luogu 3388 【模板】割点(割顶)
    bzoj 3624 免费道路
    bzoj 1179 Atm
    bzoj 2428 均分数据
    luogu 4429 染色
    luogu 4427 求和
    luogu 1121 环状最大两段子段和
    hdu 4777 Queue
    hdu 5492 Find a path
    hdu 5441 Travel
  • 原文地址:https://www.cnblogs.com/carl2380/p/4191105.html
Copyright © 2020-2023  润新知