Android OpenCV Camera



  • Hi guys,

    does anyone have experiences with using OpenCV to access the camera on Android with Qt?

    Trying to link OpenCV Android libs just gives me tons of undefinied references :(

    @android:{
    ANDROID_OPENCV = C:/Android/OpenCV-2.4.9-android-sdk/sdk/native/
    LIBS +=
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_calib3d.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_flann.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_objdetect.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_contrib.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_video.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_ml.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_legacy.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_highgui.a
    $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibjpeg.a
    $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibpng.a
    $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibtiff.a
    $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibjasper.a
    #$$ANDROID_OPENCV/share/OpenCV/3rdparty/libs/armeabi-v7a/libzlib.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_ts.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_imgproc.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_core.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_androidcamera.a
    $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_features2d.a

    INCLUDEPATH += $$ANDROID_OPENCV/jni/include/opencv/
    INCLUDEPATH += $$ANDROID_OPENCV/jni/include

    OTHER_FILES += \
        $$PWD/android/AndroidManifest.xml
    

    ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
    }@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.