Ask Your Question

sumitsrv's profile - activity

2014-09-29 09:36:42 -0600 commented answer Improve Brand Detection Quality

Implementing SURF also involves filtering the matches, i.e., finding good matches. Checkout this link, http://docs.opencv.org/doc/tutorials/features2d/feature_homography/feature_homography.html

2014-09-17 03:35:55 -0600 commented question Android app works on 4.3 and above only

rwong: Actually this helped. Need to specify LIBS and ANDROID_EXTRA_LIBS as well. Will update the answer myself.

2014-09-17 02:57:47 -0600 commented question Android app works on 4.3 and above only

rwong: Unfortunately, when I specify the libs as part of ANDROID_EXTRA_LIBS rather than LIBS, Qt build fails (its now not able to locate the libraries to build)

2014-09-17 01:49:15 -0600 commented question Android app works on 4.3 and above only

rwong: Makes sense. Will try and get back with updates.

2014-09-16 14:02:57 -0600 asked a question Android app works on 4.3 and above only

Hi,

I have an OpenCV Android app (Qt based). It works for versions 4.3 and above but fails for others. The specific error being it is not able to find the libraries libopencv_java.so and libopencv_info.so, though the same APK works on the specified versions. I have already specified the min sdk as 14 and target sdk as "not set" in AndroidManifest.xml. Also the NDK points to platform 16 (Android 4.0.3). Not sure what's creating this problem.

Attaching stacktrace,

Starting remote process.D/dalvikvm(  884): Not late-enabling CheckJNI (already on)
E/Trace   (  884): error opening trace file: No such file or directory (2)
D/dalvikvm(  884): GC_CONCURRENT freed 210K, 10% free 5467K/6023K, paused 16ms+3ms, total 78ms
D/dalvikvm(  884): GC_CONCURRENT freed 340K, 12% free 5526K/6215K, paused 14ms+3ms, total 61ms
D/dalvikvm(  884): GC_CONCURRENT freed 395K, 12% free 5539K/6279K, paused 15ms+40ms, total 129ms
D/dalvikvm(  884): Trying to load lib /data/data/org.qtproject.example.TrackerDemo/lib/libgnustl_shared.so 0x40f7a6e0
D/dalvikvm(  884): Added shared lib /data/data/org.qtproject.example.TrackerDemo/lib/libgnustl_shared.so 0x40f7a6e0
D/dalvikvm(  884): No JNI_OnLoad found in /data/data/org.qtproject.example.TrackerDemo/lib/libgnustl_shared.so 0x40f7a6e0, skipping init
D/dalvikvm(  884): Trying to load lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Core.so 0x40f7a6e0
D/dalvikvm(  884): Added shared lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Core.so 0x40f7a6e0
D/dalvikvm(  884): Trying to load lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Network.so 0x40f7a6e0
D/dalvikvm(  884): Added shared lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Network.so 0x40f7a6e0
I/Qt      (  884): Network start
D/dalvikvm(  884): Trying to load lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Qml.so 0x40f7a6e0
D/dalvikvm(  884): Added shared lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Qml.so 0x40f7a6e0
D/dalvikvm(  884): No JNI_OnLoad found in /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Qml.so 0x40f7a6e0, skipping init
D/dalvikvm(  884): Trying to load lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Gui.so 0x40f7a6e0
D/dalvikvm(  884): Added shared lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Gui.so 0x40f7a6e0
D/dalvikvm(  884): No JNI_OnLoad found in /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Gui.so 0x40f7a6e0, skipping init
D/dalvikvm(  884): Trying to load lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Quick.so 0x40f7a6e0
D/dalvikvm(  884): Added shared lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Quick.so 0x40f7a6e0
D/dalvikvm(  884): No JNI_OnLoad found in /data/data/org.qtproject.example.TrackerDemo/lib/libQt5Quick.so 0x40f7a6e0, skipping init
D/dalvikvm(  884): Trying to load lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5QuickParticles.so 0x40f7a6e0
D/dalvikvm(  884): Added shared lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5QuickParticles.so 0x40f7a6e0
D/dalvikvm(  884): No JNI_OnLoad found in /data/data/org.qtproject.example.TrackerDemo/lib/libQt5QuickParticles.so 0x40f7a6e0, skipping init
D/dalvikvm(  884): Trying to load lib /data/data/org.qtproject.example.TrackerDemo/lib/libQt5XmlPatterns ...
(more)
2014-09-09 13:21:33 -0600 asked a question Android app (Qt based) runs on one version but fails on other

I did build an Android app using Qt, the same build works on Android 4.4 and 4.3 but fails on 4.1 and below. Not tested for 4.2. It throws error that libopencv_java.so not found

W/dalvikvm( 3915): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
E/AndroidRuntime( 3915): FATAL EXCEPTION: main
E/AndroidRuntime( 3915): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1936]:
37 could not load needed library 'libopencv_java.so' for 'libTrackerDemo.so' (load_library[1091]: Library 'libopencv_java.so' not found)

Moreover, I have specified min req sdk version to be 14 and haven't set any target SDK.

2014-09-06 12:51:05 -0600 received badge  Editor (source)
2014-09-06 12:48:20 -0600 asked a question Android app not able to locate libopencv_java.so

Hi,

Created a Qt based app. Build it for armabi-v7 arch. The build works fine for several phones but when I tried it on Samsung Galaxy Tab 2 which has armabi-v7 arch, its not able to find the libopencv_java.so. Not sure what could the reason be. Can anyone help.

Here's my libs declaration in .pro file,

contains(ANDROID_TARGET_ARCH,armeabi-v7a) { LIBS += /mnt/Signi/Softwares/Linux/OpenCV-2.4.9-android-sdk/sdk/native/libs/armeabi- v7a/libopencv_java.so \ /mnt/Signi/Softwares/Linux/OpenCV-2.4.9-android-sdk/sdk/native/libs/armeabi-v7a/libopencv_info.so

INCLUDEPATH += /mnt/Signi/Softwares/Linux/OpenCV-2.4.9-android-sdk/sdk/native/jni/include/ \ /mnt/Signi/Softwares/Linux/OpenCV-2.4.9-android-sdk/sdk/native/jni/include/opencv \ /mnt/Signi/Softwares/Linux/OpenCV-2.4.9-android-sdk/sdk/native/jni/include/opencv2 \ }

2014-09-02 06:10:28 -0600 commented answer Blank screen on android 4.2

Alexander, Stuck on a similar issue. Am using Qt instead of JAVA to develop an app. Blank screen. Tried using Opencv manager, Android.mk and whatever possible. Still not sure what it is.

2014-09-01 12:42:42 -0600 asked a question C++ native code used with QT hangs at capture.grab()

Hi,

Created an Android app using OpenCV and QT. The call of method "grab" or "read" of VideoCapture object freezes the further execution of code. Nothing happens after that.

Note: Consider all required header files included. The code works perfectly on Desktop (Linux)

int main(int argc, char *argv[]) {

QApplication app(argc,argv);
qDebug() << "CP 1";
Ptr<VideoCapture> capture;
capture = new VideoCapture(CV_CAP_ANDROID_FRONT);
if(capture->isOpened())
    qDebug() << "CP 1.11";
Mat img;
capture->read(img); // **code doesn't moves ahead of this point**
Mat gray;
Mat prev;
Mat diff;
cvtColor(img, prev, CV_BGR2GRAY);

}

2014-08-29 13:49:39 -0600 asked a question QT Opencv Android app cannot locate symbol “_ZN7android6Camera10disconnectEv”

Created an Opencv and QT based app. The code works fine for Desktop version but the Android version when starts throws following exception,

dlopen("/data/app-lib/org.qtproject.example.test-1/libnative_camera_r2.2.0.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r2.2.0.so"...

W/System.err(25902): java.lang.reflect.InvocationTargetException W/System.err(25902): at java.lang.reflect.Method.invoke(Native Method).... .....

Note: I have OpenCV manager installed on my Android phone.